1234567891011121314151617181920 |
- echo "in : "$0
- echo "$(realpath $(dirname $0)/..)"
- SERVER_PATH=$(realpath $(dirname $0)/..)"/sourcecode/server"
- BASE_DIR=$(realpath $(dirname $0)/..)
- if [ ! -d $BASE_DIR ] ; then
- BASE_DIR=$(realpath $(dirname $0))/quizapp-be
- fi
- CMD1="$BASE_DIR/deploy/run-upgrade-server.sh -show"
- date
- echo "-- Entering $BASE_DIR and pulling"
- cd $BASE_DIR
- date >> $BASE_DIR/LAST_GIT_PULL.log
- git pull >> $BASE_DIR/LAST_GIT_PULL.log
- echo "-- Running $CMD1 -- "
- cd $BASE_DIR"/deploy"
- $CMD1
- echo "-- Finished ! --"
|