Skip to content

Deploying on Openshift

jlooper edited this page Oct 2, 2014 · 2 revisions

Deploying a mean.io app on Openshift is pretty straightforward as long as you don't try to reinvent the wheel!

  1. Register for an account on Openshift (http://www.openshift.com).
  2. Create an app on Openshift by choosing a 'Node' type site to create. Create the site by making Openshift use Linnovate's Openshift git repo as its source code (https://github.com/linnovate/mean-on-openshift.git)
  3. On the second screen after the new application has been created, add a Mongo database
  4. When the site has been built, you can visit it on your newly created domain, which will look like my-domain.openshift.com. You may need to restart the instance on Openshift before you can see it. It will look like Mean.io boilerplate.
  5. On your new app's console page on Openshift, make a note of the git repo where the code lives. Clone that repo to your local computer where your mean.io app codebase is.
  6. Merge your completed local app into this new repo. You will have some conflicts, so merge carefully, line by line.
  7. Commit and push the repo with the Openshift code back up to Openshift. Restart your instance on Openshift, you should see your site!
Clone this wiki locally