Created
February 9, 2013 22:38
-
-
Save camshaft/4747425 to your computer and use it in GitHub Desktop.
Node debugger with startup(1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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