Deploying to OpenShift

Deploying to OpenShift
0.0 0

#1

If you deploy your applications to Heroku you can only upload 5 applications, if you want to deploy a new one, you need to verify you account with your credit card.

Heroku Error

These are the steps you need to follow to deploy to OpenShift.

Requirements

Changes in your code

  • app.listen with process.env.OPENSHIFT_NODEJS_PORT and process.env.OPENSHIFT_NODEJS_IP, both requires.
  • In your package.json set your "main": 'yourMainFile.js and "script": { "start": "node yourMainFile.js" }

Deploying our app

Enviroment variables

In my case I have my database in mLab, so I need to create some enviroment variables.

If you find a better way to solve this limitation. Feel free to contribute to our Wiki and share it with us.

You can check the app working at http://voting-pitazo.rhcloud.com/#/polls