Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 360 Bytes
resolve = require('path').resolve
server = (connect = require 'connect')()
if process.argv.length != 3 then console.log "[dir]"
else
path = resolve process.argv[2]
server.use use for use in [
connect.favicon()
connect.static path, maxAge: 1, hidden: true
]
server.listen 3000, ->
console.log "'serving #{path} on #{server.address().port}"
Jump to Line
Something went wrong with that request. Please try again.