update run.sh
This commit is contained in:
parent
cb31d2f5ca
commit
5698fbd0d8
1 changed files with 4 additions and 5 deletions
9
run.sh
9
run.sh
|
|
@ -1,9 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
while ! nc -z $DB_HOST 3306 ; do
|
||||
echo "Waiting for the MySQL Server"
|
||||
while ! nc -z $DB_HOST 5432 ; do
|
||||
echo "APP Waiting for the DB Server"
|
||||
sleep 3
|
||||
done
|
||||
|
||||
#python3 manage.py collectstatic
|
||||
#python3 manage.py collectstatic --noinput
|
||||
python3 manage.py migrate
|
||||
gunicorn accounts.wsgi:application --bind 0.0.0.0:8000 -w 4
|
||||
gunicorn main_site.wsgi:application --bind 0.0.0.0:8000 -w 4
|
||||
Loading…
Add table
Reference in a new issue