Commit 4c4f9c38 authored by Dave Lane's avatar Dave Lane
Browse files

fix incorrect variable to make sure server install happens in the right place!

parent 0937714f
Loading
Loading
Loading
Loading
+13 −10
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
# Run start script.
echo "*****Running run.sh"
CONF=/root/conf
WENOTES=/opt/wenotes/server
WENOTES=/opt/wenotes
CWD=`pwd`
# Defines
WESERVER=https://kiwilightweight@bitbucket.org/wikieducator/wenotes-server.git
@@ -52,15 +52,18 @@ if [ "$1" = 'faye' ]; then
    # next start various Javascript services
    if [[ -f $CONF/faye.yml ]] ; then
        echo "moving to server"
        if [[ -d $WENOTES/server ]] ; then
          cd $WENOTES/server
          echo "installing Node.JS dependencies"
          $NPM install
          # this will be provided on the local filesystem, linked via a volume...
          # $CP $CONF/options.json options.json
        echo "starting pm2 to supervise scripts in $CONF/faye.yml"
        $PM2 start --no-daemon $CONF/faye.yml
          echo "starting pm2 to supervise scripts in $WENOTES/server/conf/faye.yml"
          $PM2 start --no-daemon conf/faye.yml
          #$PM2 start $CONF/faye.yml
          cd $WENOTES
        else
          echo "***looks like clone of wenotes-server failed - it's not in $WENOTES/server..."
    fi

    echo "returning to original dir: $CWD"