#!/bin/bash #SOCK_LOC=$SOCK_LOC #/nvidiaInstall.sh if [ "$DEBUG" == "False" ]; then echo "Deploy mode" #APP_DIR=/var/src/gms/deployed #if [ ! -d "$GIT_DIR" ];then echo "Clone GMS" git clone "https://deployment_ops:4rGdZ42sg4JaTt5uxMbp@bitbucket.org/srm-consulting/gmsdjango.git" /var/src/gms/deployed echo "Clone Tierra2" git clone "https://deployment_ops:4rGdZ42sg4JaTt5uxMbp@bitbucket.org/srm-consulting/tierra2_staging.git" /var/src/gms/deployed/Tierra_2 echo "Clone IA models" git clone "https://deployment_ops:4rGdZ42sg4JaTt5uxMbp@bitbucket.org/srm-consulting/ia_models.git" /var/src/gms/deployed/ia_models APP_DIR=/var/src/gms/deployed #fi #cd $APP_DIR && git checkout ${GMS_SERVER_BRANCH} && git pull #cd /var/src/gms/deployed && git checkout develop #cd $APP_DIR/Tierra_2 && git pull cd $APP_DIR else echo "Debug mode" fi REQ_PATH=$(dirname "$APP_DIR") echo -e "\e[92mAll dependencies satisfied\e[39m" echo -e "\e[92mSTARTING GMS SERVER\e[39m" 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 && python manage.py runserver 0.0.0.0:8000 --noreload