From 5698fbd0d8ad8e31ad3e50b584b4fc65315884c2 Mon Sep 17 00:00:00 2001 From: mahdavi Date: Sun, 30 Jun 2024 16:24:35 +0330 Subject: [PATCH] update run.sh --- run.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/run.sh b/run.sh index 98536f8..f747808 100755 --- a/run.sh +++ b/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 \ No newline at end of file +gunicorn main_site.wsgi:application --bind 0.0.0.0:8000 -w 4 \ No newline at end of file