From 7a076c2d9961b6b416f21dfb08de78e1dddb2c02 Mon Sep 17 00:00:00 2001 From: Seth Woodworth Date: Wed, 8 Feb 2012 00:03:02 -0500 Subject: [PATCH] adding a dev server kickoff script --- devRun.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 devRun.sh 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 & -- 2.25.1