3 # Start Script for running app.js and Etherpad-lite in development mode
4 # TODO Merge with start as an argument option
7 # Kill all node instances
8 echo "FinalsClub, NOT doing a killall node, do it yourself if you need it"
11 export NODE_PATH="`pwd`/etherpad-lite/node_modules:`pwd`/node_modules:$NODE_PATH"
16 #export NODE_PATH=/home/risci_atom/fc/node_modules/:/home/risci_atom/fc/etherpad-lite/node_modules:$NODE_PATH
17 export MONGO_HOST_URI=mongodb://localhost/fc
18 export MONGO_HOST=localhost
19 export SERVER_HOST=localhost
20 export SERVER_PORT=3000
21 export NODE_ENV=development
24 echo "starting etherpad-lite"
26 ./bin/run.sh &> ../epl.log &
30 node ./app.js &> app.log &