#!/bin/bash SOCK_LOC=$SOCK_LOC echo "https://Victorian00:ATBBLFZV2cRMZTHZhpdfnvdSM2ZDE2D6B99E@bitbucket.org" > ~/.git-credentials #/nvidiaInstall.sh if [ "$DEBUG" == "False" ]; then echo "Deploy mode" APP_DIR=/var/src/ipsgeoprocesing/deploy if [ ! -d "$GIT_DIR" ];then # git clone "https://Victorian00@bitbucket.org/srm-consulting/ipsgeoprocesing.git" $APP_DIR git clone "https://Victorian00:ATBBLFZV2cRMZTHZhpdfnvdSM2ZDE2D6B99E@bitbucket.org/srm-consulting/ipsgeoprocesing.git" $APP_DIR7 cd $APP_DIR fi #cd $APP_DIR && git checkout ${GMS_SERVER_BRANCH} && git pull cd $APP_DIR else echo "Debug mode" fi echo $APP_DIR REQ_PATH=$(dirname "$APP_DIR") echo -e "#########################################" #echo -e "\e[92mAll dependencies satisfied\e[39m" #echo -e "\e[92mSTARTING IPSGeoprocesing SERVER\e[39m" echo -e "------ All dependencies satisfied -------" echo -e "---- STARTING IPSGeoprocesing SERVER ----" echo -e "#########################################" PS1=gms source /root/.bashrc # Se añade la variable PS1 para "engañar" # al bash indicando que es una sesión interactiva # de otra manera no establece las variables de entorno # escritas en /root/bashrc cd $APP_DIR && python3 manage.py runserver 0.0.0.0:8000 --noreload