Skip to content

Commit

Permalink
fabric: 更新流程
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryJi529 committed Jun 18, 2023
1 parent db6d438 commit fb0890a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/deploy/_fabric/fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ def update(c):
better_print("运行更新脚本...")
c.run("docker exec -it morningstar_django bash /production.sh")

better_print("重启服务...")
c.run("docker exec -it morningstar_django supervisorctl restart django")

print("Done!!")


Expand Down Expand Up @@ -143,8 +146,8 @@ def update_file_with_secret():
better_print("启动supervisor管理Django进程...")
c.run("docker exec -it morningstar_django service supervisor start")
# NOTE: 重启Django确保数据库无连接错误
c.run("docker exec -it morningstar_django supervisorctl restart django")
c.run("docker exec -it morningstar_django bash /production.sh")
c.run("docker exec -it morningstar_django supervisorctl restart django")

better_print("配置HTTPS...")
c.run("docker exec morningstar_nginx bash /start.sh")
Expand Down

0 comments on commit fb0890a

Please sign in to comment.