perf: 优化start脚本

v2
xiaojunnuo 2025-07-25 16:57:21 +08:00
parent 99fd5fca4d
commit 238ad7ce51
1 changed files with 4 additions and 4 deletions

View File

@ -33,22 +33,22 @@ echo "开始构建"
echo "构建certd-client"
export NODE_OPTIONS=--max-old-space-size=32768
cd packages/ui/certd-client
npm run build
pnpm run build
cp -r dist/* ../certd-server/public
echo "构建certd-server"
cd ../certd-server
npm run build
pnpm run build
echo "构建完成"
echo "启动服务"
# 前台运行
if [ $confirmNohup != "y" ]; then
echo "当前运行模式为前台运行ctrl+c或者关闭ssh将会停止运行"
npm run start
pnpm run start
else
echo "当前运行模式为后台运行可以通过tail -f ./certd.log 命令查看日志"
nohup npm run start > certd.log &
nohup pnpm run start > certd.log &
fi