Browse Source

Merge pull request #20 from squatconf/feat/small-improv

Some small improvements
2015
gorhgorh 6 years ago
parent
commit
0829c9f2cc
  1. 2
      package.json
  2. 8
      server.js

2
package.json

@ -19,6 +19,6 @@
},
"homepage": "https://github.com/squatconf/website",
"dependencies": {
"ecstatic": "^0.5.8"
"ecstatic": "^1.4.0"
}
}

8
server.js

@ -1,15 +1,15 @@
#!/usr/bin/env node
var ecstatic = require('ecstatic')
, port = 8000
, app = require('http').createServer(
ecstatic({ root: __dirname + '/public' })
).listen(8000)
).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)
})
Loading…
Cancel
Save