adding courseNum and lectureNum fields to schema
[oweals/finalsclub.git] / devRun.sh
1 #!/bin/bash
2
3 # Start Script for running app.js and Etherpad-lite in development mode
4 # TODO Merge with start as an argument option
5
6
7 # Kill all node instances
8 echo "FinalsClub, NOT doing a killall node, do it yourself if you need it"
9
10 echo ""
11 export NODE_PATH="`pwd`/etherpad-lite/node_modules:`pwd`/node_modules:$NODE_PATH"
12 echo $NODE_PATH
13
14
15 # Set Env. Vars.
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
22
23
24 echo "starting etherpad-lite"
25 cd etherpad-lite
26 ./bin/run.sh &> ../epl.log &
27
28 echo "starting fc"
29 cd ../
30 node ./app.js &> app.log &