Skip to content

Instantly share code, notes, and snippets.

@andrepadez
Created February 25, 2015 17:51
Show Gist options
  • Save andrepadez/17b57d72898327161911 to your computer and use it in GitHub Desktop.
Save andrepadez/17b57d72898327161911 to your computer and use it in GitHub Desktop.
OpenShift setup
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