修改docker-compose部署方式
This commit is contained in:
+3
-2
@@ -1,7 +1,8 @@
|
||||
#!/bin/sh
|
||||
sleep 5 #等MySQL启动
|
||||
sleep 5
|
||||
rm -rf migrations
|
||||
flask db init && flask db migrate && flask db upgrade && flask admin init
|
||||
exec gunicorn -c gunicorn.conf.py "applications:create_app() --preload"
|
||||
exec gunicorn -c gunicorn.conf.py "applications:create_app()"
|
||||
while true; do
|
||||
echo '发生错误'
|
||||
sleep 100
|
||||
|
||||
Reference in New Issue
Block a user