Revision dbc4531c2b3f44cfaf67fbc1e6cdedd379a1f904 authored by Aaron Heckmann on 01 October 2013, 01:41:53 UTC, committed by Aaron Heckmann on 01 October 2013, 13:38:55 UTC
1 parent 327e5c9
static.js
var static = require('node-static');
var server = new static.Server('.', { cache: 0 });
var open = require('open')
require('http').createServer(function (req, res) {
if ('/favicon.ico' == req.url) {
req.destroy();
res.statusCode = 204
return res.end();
}
req.on('end', function () {
server.serve(req, res, function (err) {
if (err) {
console.error(err, req.url);
res.writeHead(err.status, err.headers);
res.end();
}
});
});
req.resume();
}).listen(8088);
console.error('now listening on http://localhost:8088');
open('http://localhost:8088');
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...