mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-07 03:46:07 +08:00
修改启动命令环境变量
This commit is contained in:
parent
472a3088df
commit
2e94d58758
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user