From f345f362e4a1328d7495e8a725d16a20f7b7d737 Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Wed, 16 Jun 2021 23:54:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dentrypoint=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/docker-entrypoint.sh | 1 + shell/update.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 05e442de..c7c73e49 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -11,6 +11,7 @@ echo echo -e "======================2. 更新源代码========================\n" ql update "no-restart" +pm2 l >/dev/null 2>&1 echo echo -e "======================3. 启动nginx========================\n" diff --git a/shell/update.sh b/shell/update.sh index dbdbcb7a..89ea0c6a 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -301,6 +301,8 @@ update_qinglong() { } reload_pm2() { + pm2 l >/dev/null 2>&1 + if [[ $(pm2 info panel 2>/dev/null) ]]; then pm2 reload panel >/dev/null 2>&1 else