Skip to content

Instantly share code, notes, and snippets.

@addisonj
Created February 28, 2012 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save addisonj/1933628 to your computer and use it in GitHub Desktop.
Save addisonj/1933628 to your computer and use it in GitHub Desktop.
an app that fails
// this app is full of fail
var express = require("express")
exports.createServer = function() {
var app = express.createServer()
app.get('/', function(req, res) {
process.exit(1) // obviously not going to get past this
res.send('okay')
})
app.get("/good", function(req, res) {
res.send("YEAHHHH")
})
return app
}
if (module === require.main) {
require('itv/server').listen(__filename, 7245)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment