mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 07:35:05 -04:00
improved the bin files
This commit is contained in:
parent
e96595896c
commit
de5c0741f7
4 changed files with 76 additions and 47 deletions
|
@ -1,5 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
#Move to the folder where ep-lite is installed
|
||||
FOLDER=$(dirname $(readlink -f $0))
|
||||
cd $FOLDER
|
||||
|
||||
#Was this script started in the bin folder? if yes move out
|
||||
if [ -d "../bin" ]; then
|
||||
cd "../"
|
||||
fi
|
||||
|
||||
#prepare the enviroment
|
||||
bin/installDeps.sh || exit 1
|
||||
|
||||
hash node-inspector > /dev/null 2>&1 || {
|
||||
echo "You need to install node-inspector to run the tests!" >&2
|
||||
echo "You can install it with npm" >&2
|
||||
|
@ -11,9 +23,8 @@ node-inspector &
|
|||
|
||||
echo "If you new to node-inspector, take a look at this video: http://youtu.be/AOnK3NVnxL8"
|
||||
|
||||
if [ -d "../bin" ]; then
|
||||
cd "../"
|
||||
fi
|
||||
|
||||
cd "node"
|
||||
node --debug server.js
|
||||
|
||||
#kill node-inspector before ending
|
||||
kill $!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue