From: Seth Woodworth Date: Wed, 8 Feb 2012 05:03:02 +0000 (-0500) Subject: adding a dev server kickoff script X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7a076c2d9961b6b416f21dfb08de78e1dddb2c02;p=oweals%2Ffinalsclub.git adding a dev server kickoff script --- diff --git a/devRun.sh b/devRun.sh new file mode 100755 index 0000000..9b8567e --- /dev/null +++ b/devRun.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# Start Script for running app.js and Etherpad-lite in development mode +# TODO Merge with start as an argument option + + +# Kill all node instances +echo "FinalsClub, NOT doing a killall node, do it yourself if you need it" + +echo "" +export NODE_PATH="`pwd`/etherpad-lite/node_modules:`pwd`/node_modules:$NODE_PATH" +echo $NODE_PATH + + +# Set Env. Vars. +#export NODE_PATH=/home/risci_atom/fc/node_modules/:/home/risci_atom/fc/etherpad-lite/node_modules:$NODE_PATH +export MONGO_HOST_URI=mongodb://localhost/fc +export MONGO_HOST=localhost +export SERVER_HOST=localhost +export SERVER_PORT=3000 +export NODE_ENV=development + + +echo "starting etherpad-lite" +cd etherpad-lite +./bin/run.sh &> ../epl.log & + +echo "starting fc" +cd ../ +node ./app.js &> app.log &