server-run.sh 503 B

1234567891011121314151617181920
  1. echo "in : "$0
  2. echo "$(realpath $(dirname $0)/..)"
  3. SERVER_PATH=$(realpath $(dirname $0)/..)"/sourcecode/server"
  4. BASE_DIR=$(realpath $(dirname $0)/..)
  5. if [ ! -d $BASE_DIR ] ; then
  6. BASE_DIR=$(realpath $(dirname $0))/quizapp-be
  7. fi
  8. CMD1="$BASE_DIR/deploy/run-upgrade-server.sh -show"
  9. date
  10. echo "-- Entering $BASE_DIR and pulling"
  11. cd $BASE_DIR
  12. date >> $BASE_DIR/LAST_GIT_PULL.log
  13. git pull >> $BASE_DIR/LAST_GIT_PULL.log
  14. echo "-- Running $CMD1 -- "
  15. cd $BASE_DIR"/deploy"
  16. $CMD1
  17. echo "-- Finished ! --"