separated the server module from the serve script which instantiates an instance of it

This commit is contained in:
calcnerd256 2012-01-22 18:51:42 -06:00
parent 2d0c3b867a
commit 43af5cfe00
5 changed files with 5 additions and 4 deletions

View file

@ -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 $!

View file

@ -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

1
node/serve.js Normal file
View file

@ -0,0 +1 @@
require("./server").init(function(){});

View file

@ -531,4 +531,4 @@ async.waterfall([
}
]);
}
init(function(){});
this.init = init;

View file

@ -1,2 +1,2 @@
cd node
..\bin\node server.js
..\bin\node serve.js