diff --git a/run.sh b/run.sh deleted file mode 100644 index a4bca79..0000000 --- a/run.sh +++ /dev/null @@ -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 \ No newline at end of file diff --git a/start.sh b/start.sh index 9436537..54b9903 100755 --- a/start.sh +++ b/start.sh @@ -1,10 +1,10 @@ #!/usr/bin/env bash -while ! nc -z db 3306 ; do +while ! nc -z $DB_HOST 3306 ; do echo "Waiting for the MySQL Server" sleep 3 done -pwd +python3 manage.py collectstatic python3 manage.py migrate -python3 manage.py runserver 0.0.0.0:8000 \ No newline at end of file +gunicorn accounts.wsgi:application --bind 0.0.0.0:8000 -w 4 \ No newline at end of file diff --git a/wait_for_db.sh b/wait_for_db.sh deleted file mode 100755 index 6492675..0000000 --- a/wait_for_db.sh +++ /dev/null @@ -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." \ No newline at end of file