You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
374 B
JavaScript
16 lines
374 B
JavaScript
#!/usr/bin/env node
|
|
|
|
var ecstatic = require('ecstatic')
|
|
, port = 8000
|
|
, app = require('http').createServer(
|
|
ecstatic({ root: __dirname + '/public' })
|
|
).listen(port, function () {
|
|
console.log('Listening on http://localhost:' + port)
|
|
})
|
|
;
|
|
|
|
process.on('uncaughtException', function (err) {
|
|
console.error('Error at:', new Date)
|
|
console.error(err.stack)
|
|
})
|