Skip to content
This repository
tree: 47e6394eb3
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 20 lines (15 sloc) 0.408 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/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);
});
Something went wrong with that request. Please try again.