Skip to content

Instantly share code, notes, and snippets.

@gisthero
Created May 13, 2013 10:53
Show Gist options
  • Save gisthero/5567526 to your computer and use it in GitHub Desktop.
Save gisthero/5567526 to your computer and use it in GitHub Desktop.
Express on Heroku
{
"name": "express-example",
"version": "0.0.1",
"dependencies": {
"express": "3.1.x"
},
"engines": {
"node": "0.10.x",
"npm": "1.2.x"
}
}
web: node web.js
var express = require("express");
var app = express();
app.use(express.logger());
app.get('/', function(request, response) {
response.send('Hello World!');
});
var port = process.env.PORT || 5000;
app.listen(port, function() {
console.log("Listening on " + port);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment