2011-07-26 20:28:49 +02:00
|
|
|
#!/bin/sh
|
2011-03-28 14:27:09 +02:00
|
|
|
|
2011-07-27 15:37:12 +02:00
|
|
|
#Move to the folder where ep-lite is installed
|
2020-03-29 00:53:17 +01:00
|
|
|
cd $(dirname $0)
|
2011-07-27 15:37:12 +02:00
|
|
|
|
|
|
|
#Was this script started in the bin folder? if yes move out
|
|
|
|
if [ -d "../bin" ]; then
|
|
|
|
cd "../"
|
|
|
|
fi
|
|
|
|
|
2017-09-14 13:33:27 +02:00
|
|
|
#Prepare the environment
|
2011-07-27 15:37:12 +02:00
|
|
|
bin/installDeps.sh || exit 1
|
|
|
|
|
2018-12-22 13:28:50 +01:00
|
|
|
echo "If you are new to debugging Node.js with Chrome DevTools, take a look at this page:"
|
|
|
|
echo "https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27"
|
|
|
|
echo "Open 'chrome://inspect' on Chrome to start debugging."
|
2011-03-28 14:27:09 +02:00
|
|
|
|
2018-12-22 13:28:50 +01:00
|
|
|
#Use 0.0.0.0 to allow external connections to the debugger
|
|
|
|
#(ex: running Etherpad on a docker container). Use default port # (9229)
|
2019-12-01 01:52:32 +01:00
|
|
|
node --inspect=0.0.0.0:9229 node_modules/ep_etherpad-lite/node/server.js "$@"
|