This commit is contained in:
mahdavi 2022-09-03 04:25:11 +04:30
parent 6ef8363e1b
commit f1395b44ce
3 changed files with 3 additions and 14 deletions

3
run.sh
View file

@ -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

View file

@ -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

View file

@ -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."