Created
January 8, 2012 21:11
-
-
Save coderarity/1579711 to your computer and use it in GitHub Desktop.
This file contains 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
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