forked from freeleaps/freeleaps-pub
Update for frontend start with nohup
This commit is contained in:
parent
1bdbe1d55f
commit
278c44a25f
@ -1090,7 +1090,16 @@ npm install -g pnpm
|
|||||||
pnpm install
|
pnpm install
|
||||||
npm run build
|
npm run build
|
||||||
npm run format
|
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
|
# Wait for the frontend service to start
|
||||||
sleep 120
|
sleep 120
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user