Skip to content

Instantly share code, notes, and snippets.

@camshaft
Created February 9, 2013 22:38
Show Gist options
  • Save camshaft/4747425 to your computer and use it in GitHub Desktop.
Save camshaft/4747425 to your computer and use it in GitHub Desktop.
Node debugger with startup(1)
/**
* Module dependencies
*/
var express = require("express");
var app = module.exports = express();
app.get("/", function(req, res){
res.send("Hello");
});
if(!process.env.STARTUP) {
app.listen(process.env.PORT);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment