diff --git a/deploy.sh b/deploy.sh deleted file mode 100644 index a65ea63..0000000 --- a/deploy.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash -# Deployment script -apt install libmysqlclient-dev libssl-dev libcrypto++-dev lsb-release - -python manage.py migrate diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..959e88d --- /dev/null +++ b/start.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +while ! nc -z db 3306 ; do + echo "Waiting for the MySQL Server" + sleep 3 +done + +python manage.py runserver 0.0.0.0:8000 \ No newline at end of file