update run.sh

This commit is contained in:
mahdavi 2024-06-30 16:24:35 +03:30
parent cb31d2f5ca
commit 5698fbd0d8

9
run.sh
View file

@ -1,9 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
while ! nc -z $DB_HOST 3306 ; do while ! nc -z $DB_HOST 5432 ; do
echo "Waiting for the MySQL Server" echo "APP Waiting for the DB Server"
sleep 3 sleep 3
done done
#python3 manage.py collectstatic --noinput
#python3 manage.py collectstatic
python3 manage.py migrate 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