There are lots of how-tos already available. The deployment was very quick, and painless. While I do not feel the need to copy the howto verbatim I will include a couple of things unique to WordPress and Openshift.
Openshift does not provide a static IP address to your app.
- You will need to setup a CNAME on your DNS server to [appname]-[namespace].rhcloud.com.
- You then need to add the alias to openshift
$ rhc alias add [appname] [alias]
- WordPress also needs to be configured with the correct hostname or every link will direct you to [appname]-[namespace].rhcloud.com. Under General setting you can change the hostname and siteurl:
Your app is deployed via GIT. All the usual buttons work in WordPress for installing themes and plugins, but if you pull from you git repository, or push from a local copy all of these changes will be overwritten.
- Make changes to the GIT repository and push rather than make changes through the WordPress admin interface. Themes and plugins can simply be placed in their respective directories under “php/wp-content”.
- Or if you do make changes on the production site, you can rsync the changes from your openshift deployment back to your git clone and add the changes there.
- If you have changed the WordPress permalink settings there will be a “.htaccess” file created on the Openshift gear. Grab this and add it to your git repository or, every time you push your changes, the permalink settings will be reset.