Skip to content

Instantly share code, notes, and snippets.

@coderarity
Created January 8, 2012 21:11
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 coderarity/1579711 to your computer and use it in GitHub Desktop.
Save coderarity/1579711 to your computer and use it in GitHub Desktop.
var path = require('path');
var union = require('union');
var ecstatic = require('ecstatic');
//super simple static file server
union.createServer({ before: [
ecstatic(path.join(__dirname, 'public'))
]}).listen(8080);
console.log('Server started!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment