启动脚本

This commit is contained in:
ZtRXR 2023-08-30 15:56:24 +08:00
parent b6776739c7
commit 50d0c797ef

16
start.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
# 1. 执行 git pull
git pull
# 2. 执行 npm i
npm i
# 3. 执行 npm run build
npm run build
# 4. 切换到 ./.output 目录
cd ./.output
# 5. 执行 node ./server/index.mjs
node ./server/index.mjs