mirror of https://github.com/certd/certd
perf: 优化start脚本
parent
99fd5fca4d
commit
238ad7ce51
8
start.sh
8
start.sh
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue