Deploy fix attempt

This commit is contained in:
simon987
2019-04-04 21:21:32 -04:00
parent 0f1c0df91a
commit 310f343423
4 changed files with 9 additions and 14 deletions

View File

@@ -2,12 +2,16 @@
export ODDBROOT="od-database"
virtualenv ${ODDBROOT}/env -p python3.7
source ${ODDBROOT}/env/bin/activate
pip install -r ${ODDBROOT}/requirements.txt
screen -S oddb_web -X quit
killall -9 uwsgi
sleep 30
sleep 15
echo "starting oddb_web"
screen -S oddb_web -d -m bash -c "cd ${ODDBROOT} && uwsgi od-database.ini 2> stderr.txt"
screen -S oddb_web -d -m bash -c "cd ${ODDBROOT} && source env/bin/activate && uwsgi od-database.ini 2> stderr.txt"
sleep 1
screen -list