start rewrite

This commit is contained in:
mahdavi 2022-09-02 12:25:33 +04:30
parent c4d9eaae2f
commit aa3a2f97a2
2 changed files with 8 additions and 5 deletions

View file

@ -1,5 +0,0 @@
#!/usr/bin/env bash
# Deployment script
apt install libmysqlclient-dev libssl-dev libcrypto++-dev lsb-release
python manage.py migrate

8
start.sh Executable file
View file

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