Skip to content

Instantly share code, notes, and snippets.

@davidklassen
Created October 26, 2012 11:10
Show Gist options
  • Save davidklassen/3958230 to your computer and use it in GitHub Desktop.
Save davidklassen/3958230 to your computer and use it in GitHub Desktop.
Express server for static files
var express = require('express')
, app = express()
, port = 3000
, staticPath = '/../sources'
app.use(express.favicon())
app.use(express.static(__dirname + staticPath))
app.listen(port, function () {
console.log('Listening on port ', port)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment