run-allgo 454 Bytes
Newer Older
1 2 3 4
#!/bin/sh

set -e

BERJON Matthieu's avatar
BERJON Matthieu committed
5 6 7 8 9 10 11 12 13 14 15
# dump the database and execute the migration
while ! mysql -u allgo -h dev-mysql --password=allgo -e ";"
do
  sleep 2
done

/bin/bash /opt/allgo/tools/migration.sh -e allgo allgo dev-mysql allgo
/bin/bash /opt/allgo/tools/migration.sh -d allgo allgo dev-mysql allgo
/bin/bash /opt/allgo/tools/migration.sh -m allgo allgo dev-mysql allgo

# service nginx start
16
python3 /opt/allgo/manage.py runserver 4000 &
BERJON Matthieu's avatar
BERJON Matthieu committed
17
exec nginx -g 'daemon off;'