Update for frontend start with nohup

This commit is contained in:
Tianyong Qiu 2025-02-06 11:28:57 +08:00
parent 1bdbe1d55f
commit 278c44a25f

View File

@ -1090,7 +1090,16 @@ npm install -g pnpm
pnpm install
npm run build
npm run format
npm run dev
# 静默后台启动 npm run dev将输出重定向到 /dev/null
nohup npm run dev > /dev/null 2>&1 &
# 获取后台启动进程的 PID可选
DEV_PID=$!
echo "npm run dev 已启动,进程号: \$DEV_PID"
echo '============================================'
# Wait for the frontend service to start
sleep 120