mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 06:37:10 -04:00
separated the server module from the serve script which instantiates an instance of it
This commit is contained in:
parent
2d0c3b867a
commit
43af5cfe00
5 changed files with 5 additions and 4 deletions
|
@ -23,7 +23,7 @@ node-inspector &
|
||||||
echo "If you are new to node-inspector, take a look at this video: http://youtu.be/AOnK3NVnxL8"
|
echo "If you are new to node-inspector, take a look at this video: http://youtu.be/AOnK3NVnxL8"
|
||||||
|
|
||||||
cd "node"
|
cd "node"
|
||||||
node --debug server.js
|
node --debug serve.js
|
||||||
|
|
||||||
#kill node-inspector before ending
|
#kill node-inspector before ending
|
||||||
kill $!
|
kill $!
|
||||||
|
|
|
@ -26,4 +26,4 @@ bin/installDeps.sh || exit 1
|
||||||
#Move to the node folder and start
|
#Move to the node folder and start
|
||||||
echo "start..."
|
echo "start..."
|
||||||
cd "node"
|
cd "node"
|
||||||
node server.js
|
node serve.js
|
||||||
|
|
1
node/serve.js
Normal file
1
node/serve.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
require("./server").init(function(){});
|
|
@ -531,4 +531,4 @@ async.waterfall([
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
init(function(){});
|
this.init = init;
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
cd node
|
cd node
|
||||||
..\bin\node server.js
|
..\bin\node serve.js
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue