DataFront/start.sh
2023-09-01 17:22:16 +08:00

20 lines
244 B
Bash

#!/bin/bash
# 1. 执行 git pull
git pull
# 2. 执行 npm i
npm i
# 3. 执行 npm run build
npm run build
cp ./word.json ./.output/
# 4. 切换到 ./.output 目录
cd ./.output
# 5. 执行 node ./server/index.mjs
node ./server/index.mjs