start rewrite
This commit is contained in:
parent
c4d9eaae2f
commit
aa3a2f97a2
2 changed files with 8 additions and 5 deletions
|
|
@ -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
8
start.sh
Executable 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
|
||||||
Loading…
Add table
Reference in a new issue