Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 20 lines (15 sloc) 0.408 kb
ccafba4 @jfhbrook [dist] Added http-server based server and package.json
jfhbrook authored
1 #!/usr/bin/env node
2
3 var httpServer = require('http-server'),
4 path = require('path');
5
6 var port = 8000,
7 host = '0.0.0.0',
8 root = path.resolve(__dirname, '../public');
9
10 var server = httpServer.createServer({
11 root: root,
12 autoIndex: false,
13 cache: true
14 });
15
16 server.listen(port, host, function () {
17 console.log(root);
18 console.log('Now hosting the handbook on http://%s:%s', host, port);
19 });
Something went wrong with that request. Please try again.