优化docker启动脚本

This commit is contained in:
zmister 2022-05-18 13:48:15 +08:00
parent 01a52a12e9
commit 6eae36ecca

View File

@ -5,7 +5,7 @@ python /app/MrDoc/manage.py makemigrations &&
# 根据数据库迁移文件执行数据库变更
python /app/MrDoc/manage.py migrate &&
# 重建全文搜索索引
nohup echo y |python /app/MrDoc/manage.py rebuild_index &&
nohup echo y |python /app/MrDoc/manage.py rebuild_index &
# 启动uwsgi
uwsgi --ini /app/MrDoc/config/uwsgi.ini
# 直接 runserver 方式运行