-
Notifications
You must be signed in to change notification settings - Fork 2
OpenShift Deployment Guide
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.
These are the steps you need to follow to deploy to OpenShift.
-
app.listen
withprocess.env.OPENSHIFT_NODEJS_PORT
andprocess.env.OPENSHIFT_NODEJS_IP
, both requires. - In your package.json set your
"main": 'yourMainFile.js
and"script": { "start": "node yourMainFile.js" }
-
Choose a name (second input will be same for all you apps)
-
Fill our Git URL and our branch name
-
"Create Application". It will take some time
-
Enter to "Application", then into your App and check it's started.
In my case I have my database in mLab, so I need to create some enviroment variables.
-
rhc only works with versions 1.9.3 and 2.0.0 of Ruby.
-
If you are having trouble with setting up
rhc
, try this answer on StackOverflow. -
rhc env set VARIABLE=value VARIABLE2=value2 -a App_Name
.You need to restart your app to load the 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
Learn to code and help nonprofits. Join our open source community in 15 seconds at http://freecodecamp.com
Follow our Medium blog
Follow Quincy on Quora
Follow us on Twitter
Like us on Facebook
And be sure to click the "Star" button in the upper right of this page.
New to Free Code Camp?
JS Concepts
JS Language Reference
- arguments
- Array.prototype.filter
- Array.prototype.indexOf
- Array.prototype.map
- Array.prototype.pop
- Array.prototype.push
- Array.prototype.shift
- Array.prototype.slice
- Array.prototype.some
- Array.prototype.toString
- Boolean
- for loop
- for..in loop
- for..of loop
- String.prototype.split
- String.prototype.toLowerCase
- String.prototype.toUpperCase
- undefined
Other Links