From 50d0c797efe55b3fdf8e2e3b41d4c66723d9726b Mon Sep 17 00:00:00 2001 From: ZtRXR Date: Wed, 30 Aug 2023 15:56:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E5=8A=A8=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 start.sh diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..b693d84 --- /dev/null +++ b/start.sh @@ -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