This is a simple list of deployment steps to setup Ruby on Rails app on OpenShift.
Well, I assume we have OpenShift account and rhc tool installed and logged in. We also have a git repo with a brand new Ruby on Rails app.
Setup Database. I used postgresql, but mysql-5.1/5.5 and mongoDB-2.4 are also available.
Check everything working:
Add the OpenShift repository as one of your remote repositories
Show you all the information about your application (Remote URL)
Add Git Remote
Take whatever OpenShift is adding by merging (saving our code)
Let’s push it:
It usually takes a few minutes (not seconds). And should be finished like this:
Navigate to App folder:
Now, it is time to open it in your browser. Happy Deployment!