etherpad-lite/bin/debugRun.sh

29 lines
663 B
Bash
Raw Normal View History

#!/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
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
#Prepare the environment
2011-07-27 15:37:12 +02:00
bin/installDeps.sh || exit 1
hash node-inspector > /dev/null 2>&1 || {
2011-03-28 14:27:09 +02:00
echo "You need to install node-inspector to run the tests!" >&2
echo "You can install it with npm" >&2
2011-07-26 18:00:56 +02:00
echo "Run: npm install -g node-inspector" >&2
2011-03-28 14:27:09 +02:00
exit 1
}
node-inspector &
echo "If you are new to node-inspector, take a look at this video: https://youtu.be/AOnK3NVnxL8"
2011-03-28 14:27:09 +02:00
node --debug node_modules/ep_etherpad-lite/node/server.js $*
2011-07-27 15:37:12 +02:00
#Kill node-inspector before ending
2011-07-27 15:37:12 +02:00
kill $!