Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Use OPENSHIFT_DB_PORT environment variable #17
This patch enables the wordpress-example to be used on OpenShift when auto-scaling is enabled.
It uses the OPENSHIFT_DB_PORT environment variable to connect to mysql. Previously, the port number was not specified, so it was using the default mysql port (3306).
Apparently, when you add the mysql cartridge to a non-scaled OpenShift app, the mysql port number is 3306, so this was working. However, when you add the mysql cartridge to a scaled OpenShift app (created with