Skip to content

Instantly share code, notes, and snippets.

@creationix
Created January 2, 2011 07:27
Show Gist options
  • Save creationix/762377 to your computer and use it in GitHub Desktop.
Save creationix/762377 to your computer and use it in GitHub Desktop.
Static file server for creationix.com (launches with spark to set port 80 and uid to nobody)
module.exports = require('http').createServer(require('stack')(
require('creationix/log')(),
require('creationix/static')('/', __dirname, "index.html")
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment