diff --git a/bin/debugRun.sh b/bin/debugRun.sh index 01197a6b8..b963744d8 100755 --- a/bin/debugRun.sh +++ b/bin/debugRun.sh @@ -23,7 +23,7 @@ node-inspector & echo "If you are new to node-inspector, take a look at this video: http://youtu.be/AOnK3NVnxL8" cd "node" -node --debug server.js +node --debug serve.js #kill node-inspector before ending kill $! diff --git a/bin/run.sh b/bin/run.sh index a5245ff77..878e0a55c 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -26,4 +26,4 @@ bin/installDeps.sh || exit 1 #Move to the node folder and start echo "start..." cd "node" -node server.js +node serve.js diff --git a/node/serve.js b/node/serve.js new file mode 100644 index 000000000..e0e75c317 --- /dev/null +++ b/node/serve.js @@ -0,0 +1 @@ +require("./server").init(function(){}); diff --git a/node/server.js b/node/server.js index 450c5188a..cb368db32 100644 --- a/node/server.js +++ b/node/server.js @@ -531,4 +531,4 @@ async.waterfall([ } ]); } -init(function(){}); +this.init = init; diff --git a/start.bat b/start.bat index cf6a60f18..0fe44b3f9 100644 --- a/start.bat +++ b/start.bat @@ -1,2 +1,2 @@ cd node -..\bin\node server.js +..\bin\node serve.js