mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-28 23:46:06 +08:00
fix
This commit is contained in:
parent
6f93219c44
commit
ea71b18d07
|
@ -22,17 +22,17 @@ echo -e "nginx启动成功...\n"
|
||||||
|
|
||||||
echo -e "======================4. 启动面板监控========================\n"
|
echo -e "======================4. 启动面板监控========================\n"
|
||||||
pm2 delete public &>/dev/null
|
pm2 delete public &>/dev/null
|
||||||
pm2 start $dir_static/build/public.js -n public --source-map-support --time
|
pm2 start $dir_root/build/public.js -n public --source-map-support --time
|
||||||
echo -e "监控服务启动成功...\n"
|
echo -e "监控服务启动成功...\n"
|
||||||
|
|
||||||
echo -e "======================5. 启动控制面板========================\n"
|
echo -e "======================5. 启动控制面板========================\n"
|
||||||
pm2 delete panel &>/dev/null
|
pm2 delete panel &>/dev/null
|
||||||
pm2 start $dir_static/build/app.js -n panel --source-map-support --time
|
pm2 start $dir_root/build/app.js -n panel --source-map-support --time
|
||||||
echo -e "控制面板启动成功...\n"
|
echo -e "控制面板启动成功...\n"
|
||||||
|
|
||||||
echo -e "======================6. 启动定时任务========================\n"
|
echo -e "======================6. 启动定时任务========================\n"
|
||||||
pm2 delete schedule &>/dev/null
|
pm2 delete schedule &>/dev/null
|
||||||
pm2 start $dir_static/build/schedule.js -n schedule --source-map-support --time
|
pm2 start $dir_root/build/schedule.js -n schedule --source-map-support --time
|
||||||
echo -e "定时任务启动成功...\n"
|
echo -e "定时任务启动成功...\n"
|
||||||
|
|
||||||
if [[ $AutoStartBot == true ]]; then
|
if [[ $AutoStartBot == true ]]; then
|
||||||
|
|
|
@ -38,10 +38,10 @@ reload_pm2() {
|
||||||
pm2 l &>/dev/null
|
pm2 l &>/dev/null
|
||||||
|
|
||||||
pm2 delete panel --source-map-support --time &>/dev/null
|
pm2 delete panel --source-map-support --time &>/dev/null
|
||||||
pm2 start $dir_static/build/app.js -n panel --source-map-support --time &>/dev/null
|
pm2 start $dir_root/build/app.js -n panel --source-map-support --time &>/dev/null
|
||||||
|
|
||||||
pm2 delete schedule --source-map-support --time &>/dev/null
|
pm2 delete schedule --source-map-support --time &>/dev/null
|
||||||
pm2 start $dir_static/build/schedule.js -n schedule --source-map-support --time &>/dev/null
|
pm2 start $dir_root/build/schedule.js -n schedule --source-map-support --time &>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
pm2_log() {
|
pm2_log() {
|
||||||
|
|
|
@ -165,7 +165,6 @@ define_cmd() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fix_config() {
|
fix_config() {
|
||||||
make_dir $dir_static
|
|
||||||
make_dir $dir_data
|
make_dir $dir_data
|
||||||
make_dir $dir_config
|
make_dir $dir_config
|
||||||
make_dir $dir_log
|
make_dir $dir_log
|
||||||
|
|
|
@ -277,8 +277,8 @@ update_qinglong() {
|
||||||
local static_version=$(cat $dir_root/src/version.ts | perl -pe "s|.*\'(.*)\';\.*|\1|" | head -1)
|
local static_version=$(cat $dir_root/src/version.ts | perl -pe "s|.*\'(.*)\';\.*|\1|" | head -1)
|
||||||
echo -e "\n当前版本 $static_version...\n"
|
echo -e "\n当前版本 $static_version...\n"
|
||||||
|
|
||||||
rm -rf $dir_static/*
|
rm -rf $dir_root/build/*
|
||||||
cp -rf $ql_static_repo/* $dir_static
|
cp -rf $ql_static_repo/* $dir_root
|
||||||
if [[ $no_restart != "no-restart" ]]; then
|
if [[ $no_restart != "no-restart" ]]; then
|
||||||
nginx -s reload 2>/dev/null || nginx -c /etc/nginx/nginx.conf
|
nginx -s reload 2>/dev/null || nginx -c /etc/nginx/nginx.conf
|
||||||
echo -e "重启面板中..."
|
echo -e "重启面板中..."
|
||||||
|
@ -337,10 +337,10 @@ reload_pm2() {
|
||||||
pm2 l &>/dev/null
|
pm2 l &>/dev/null
|
||||||
|
|
||||||
pm2 delete panel --source-map-support --time &>/dev/null
|
pm2 delete panel --source-map-support --time &>/dev/null
|
||||||
pm2 start $dir_static/build/app.js -n panel --source-map-support --time &>/dev/null
|
pm2 start $dir_root/build/app.js -n panel --source-map-support --time &>/dev/null
|
||||||
|
|
||||||
pm2 delete schedule --source-map-support --time &>/dev/null
|
pm2 delete schedule --source-map-support --time &>/dev/null
|
||||||
pm2 start $dir_static/build/schedule.js -n schedule --source-map-support --time &>/dev/null
|
pm2 start $dir_root/build/schedule.js -n schedule --source-map-support --time &>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
## 对比脚本
|
## 对比脚本
|
||||||
|
|
Loading…
Reference in New Issue
Block a user