修改启动命令环境变量

This commit is contained in:
whyour 2025-05-18 22:02:55 +08:00
parent 472a3088df
commit 2e94d58758
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ pm2 l &>/dev/null
log_with_style "INFO" "🔄 2. 启动 nginx..."
nginx -s reload 2>/dev/null || nginx -c /etc/nginx/nginx.conf
log_with_style "INFO" "⚙️ 3. 启动 pm2 服务...\n"
log_with_style "INFO" "⚙️ 3. 启动 pm2 服务..."
reload_pm2
if [[ $AutoStartBot == true ]]; then

View File

@ -285,7 +285,7 @@ reload_pm2() {
cd $dir_root
restore_env_vars
pm2 flush &>/dev/null
pm2 startOrGracefulReload ecosystem.config.js
pm2 startOrGracefulReload ecosystem.config.js --update-env
}
diff_time() {