forgeplus-react/build.bash

16 lines
213 B
Bash

#!/bin/bash
# 确保脚本在当前目录执行
cd "$(dirname "$0")"
# 安装依赖
npm install
# 构建项目
npm run build
# 构建服务器端
npm run build:server
# 使用PM2启动应用程序
npm run pm2