Skip to content

Instantly share code, notes, and snippets.

@Hogent
Created May 15, 2013 12:33
Show Gist options
  • Save Hogent/5583669 to your computer and use it in GitHub Desktop.
Save Hogent/5583669 to your computer and use it in GitHub Desktop.
// routes/notes.js
...
var uristring = process.env.MONGOHQ_URL || "mongodb://localhost/notes";
...
// server.js
...
app.configure(function () {
app.set('port', process.env.VCAP_APP_PORT || 3000);
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment