Skip to content

Instantly share code, notes, and snippets.

@scan
Created January 5, 2013 14:52
Show Gist options
  • Save scan/4461902 to your computer and use it in GitHub Desktop.
Save scan/4461902 to your computer and use it in GitHub Desktop.
var express = require('express');
var app = express();
app.get('/', function(req, res) {
res.send({running:true});
});
var server = app.listen(process.env.app_port || 8080, function() {
console.log("Server running on " + server.address().port + " in " + app.settings.env + " mode.");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment