mirror of https://github.com/certd/certd
Merge remote-tracking branch 'origin/v2-dev' into v2-dev
commit
f41f7eb2ad
12
start.sh
12
start.sh
|
@ -25,30 +25,30 @@ done
|
|||
|
||||
|
||||
echo "安装pnpm, 前提是已经安装了nodejs"
|
||||
npm install -g pnpm --registry https://registry.npmmirror.com
|
||||
sudo npm install -g pnpm --registry https://registry.npmmirror.com
|
||||
echo "安装依赖"
|
||||
pnpm install --registry https://registry.npmmirror.com
|
||||
sudo pnpm install --registry https://registry.npmmirror.com
|
||||
|
||||
echo "开始构建"
|
||||
echo "构建certd-client"
|
||||
export NODE_OPTIONS=--max-old-space-size=32768
|
||||
cd packages/ui/certd-client
|
||||
pnpm run build
|
||||
sudo -E pnpm run build
|
||||
cp -r dist/* ../certd-server/public
|
||||
|
||||
echo "构建certd-server"
|
||||
cd ../certd-server
|
||||
pnpm run build
|
||||
sudo -E pnpm run build
|
||||
echo "构建完成"
|
||||
echo "启动服务"
|
||||
|
||||
# 前台运行
|
||||
if [ $confirmNohup != "y" ]; then
|
||||
echo "当前运行模式为前台运行,ctrl+c或者关闭ssh将会停止运行"
|
||||
pnpm run start
|
||||
sudo pnpm run start
|
||||
else
|
||||
echo "当前运行模式为后台运行,可以通过tail -f ./certd.log 命令查看日志"
|
||||
nohup pnpm run start > certd.log &
|
||||
nohup sudo pnpm run start > certd.log &
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue