从GIT更新应用程序源代码时是否可能不停止nodejs应用程序?
当前,Jelastic正在从GIT提取文件之前停止服务器:
Stopping nodejs server:
[PM2] Applying action deleteProcessId on app [all](ids: 0,1)
[PM2] [app](0) ✓
[PM2] [app](1) ✓
[PM2] [v] All Applications Stopped
[PM2] [v] PM2 Daemon Stopped
[ OK ]
是否可以不停止该应用程序?我想叫“ pm2 reload app”而不是停止它。
我尝试使用grep
搜索哪个脚本来执行此操作。不幸的是,没有文件包含Stopping nodejs server:
行。
The **NodeJS** service is stopped before the update from GIT because it can take plenty of time to pull all the changes and install the updated dependencies - and the behavior of the application can be unpredictable during these operations.
Please also note that the update from git is performed only if the last commit ID on the remote differs from the last local commit ID when the update process is triggered on Jelastic - in other words, there are no pulls and stop-starts if there are no changes on remote.