Created
February 25, 2015 17:51
-
-
Save andrepadez/17b57d72898327161911 to your computer and use it in GitHub Desktop.
OpenShift setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo gem install rhc | |
rhc setup | |
rhc tail -A maria | |
var ipaddress = process.env.OPENSHIFT_NODEJS_IP || "127.0.0.1"; | |
var port = process.env.OPENSHIFT_NODEJS_PORT || 3000; | |
app.listen( port, ipaddress, function() { | |
console.log('listening on port ', port); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment