修改docker-compose部署方式

This commit is contained in:
六翼羊王
2023-04-13 01:20:57 +08:00
parent 7e6d48510c
commit 5c9d8f4c36
5 changed files with 3 additions and 15 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/sh
sleep 5 #等MySQL启动
flask db init && flask db migrate && flask db upgrade && flask admin init
exec gunicorn -c gunicorn.conf.py "applications:create_app()"
exec gunicorn -c gunicorn.conf.py "applications:create_app() --preload"
while true; do
echo '发生错误'
sleep 100