|
|
@ -1,15 +1,15 @@
|
|
|
|
#!/usr/bin/env node
|
|
|
|
#!/usr/bin/env node
|
|
|
|
|
|
|
|
|
|
|
|
var ecstatic = require('ecstatic')
|
|
|
|
var ecstatic = require('ecstatic')
|
|
|
|
|
|
|
|
, port = 8000
|
|
|
|
, app = require('http').createServer(
|
|
|
|
, app = require('http').createServer(
|
|
|
|
ecstatic({ root: __dirname + '/public' })
|
|
|
|
ecstatic({ root: __dirname + '/public' })
|
|
|
|
).listen(8000)
|
|
|
|
).listen(port, function () {
|
|
|
|
|
|
|
|
console.log('Listening on http://localhost:' + port)
|
|
|
|
|
|
|
|
})
|
|
|
|
;
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
process.on('uncaughtException', function (err) {
|
|
|
|
process.on('uncaughtException', function (err) {
|
|
|
|
console.error('Error at:', new Date)
|
|
|
|
console.error('Error at:', new Date)
|
|
|
|
console.error(err.stack)
|
|
|
|
console.error(err.stack)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|