Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 347d2b80fa
Fetching contributors…

Cannot retrieve contributors at this time

executable file 20 lines (15 sloc) 0.408 kb
#!/usr/bin/env node
var httpServer = require('http-server'),
path = require('path');
var port = 8000,
host = '0.0.0.0',
root = path.resolve(__dirname, '../public');
var server = httpServer.createServer({
root: root,
autoIndex: false,
cache: true
});
server.listen(port, host, function () {
console.log(root);
console.log('Now hosting the handbook on http://%s:%s', host, port);
});
Jump to Line
Something went wrong with that request. Please try again.