lanvige / docker-node-deploy

Node deploy image with Yarn, PM2 and other hooks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

生产环境中的软件更新方法

jonahfang opened this issue · comments

我现在使用Python/django编程,生产环境中使用Docker部署,在需要软件更新时的做法如下:

  1. 用git pull更新源代码(用docker volume方式映射了项目源码).
    2.用类似docker exec yzapi sh -c "touch /opt/django/reload"这样的命令让程序重新启动。

请教:用本项目提供的docker镜像,能否做到上述这样的软件更新?