start.sh
This commit is contained in:
parent
6ef8363e1b
commit
f1395b44ce
3 changed files with 3 additions and 14 deletions
3
run.sh
3
run.sh
|
|
@ -1,3 +0,0 @@
|
||||||
python3 manage.py collectstatic
|
|
||||||
python3 manage.py migrate
|
|
||||||
gunicorn gooyal_accounts.wsgi:application --bind 0.0.0.0:8000 -w 4
|
|
||||||
6
start.sh
6
start.sh
|
|
@ -1,10 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
while ! nc -z db 3306 ; do
|
while ! nc -z $DB_HOST 3306 ; do
|
||||||
echo "Waiting for the MySQL Server"
|
echo "Waiting for the MySQL Server"
|
||||||
sleep 3
|
sleep 3
|
||||||
done
|
done
|
||||||
|
|
||||||
pwd
|
python3 manage.py collectstatic
|
||||||
python3 manage.py migrate
|
python3 manage.py migrate
|
||||||
python3 manage.py runserver 0.0.0.0:8000
|
gunicorn accounts.wsgi:application --bind 0.0.0.0:8000 -w 4
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
while ! nc -z db 3306 ; do
|
|
||||||
echo "Waiting for the MySQL Server"
|
|
||||||
sleep 3
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "MySQL ok."
|
|
||||||
Loading…
Add table
Reference in a new issue