Skip to content

Commit 5942d5b

Browse files
committed
[fix] start does not take command line arguments
1 parent 571ed99 commit 5942d5b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

bin/server

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
var HTTPServer = require('http-server').HTTPServer;
2+
3+
var httpServer = new HTTPServer({root: './public/'});
4+
5+
httpServer.start();
6+
7+
process.on('SIGINT', function() {
8+
httpServer.log('http-server stopped.'.red);
9+
return process.exit();
10+
});

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "The node documentation project",
55
"version": "0.0.0",
66
"scripts": {
7-
"start": "bin/docs serve"
7+
"start": "bin/server"
88
},
99
"author": "Nodejitsu <[email protected]>",
1010
"dependencies": {

0 commit comments

Comments
 (0)