瀏覽代碼

生成环境

wuyi 1 月之前
父節點
當前提交
5b17167d5a
共有 2 個文件被更改,包括 11 次插入1 次删除
  1. 1 1
      .env.production
  2. 10 0
      deploy.sh

+ 1 - 1
.env.production

@@ -1 +1 @@
-VITE_API_URL=
+VITE_API_URL=http://47.77.206.108/api

+ 10 - 0
deploy.sh

@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# 设置错误时退出
+set -e
+
+git pull origin main
+yarn install
+rm -rf dist/
+yarn build --mode production
+rsync --exclude='node_modules/' -ravzh --delete -e "ssh -o StrictHostKeyChecking=no" ./dist/ root@47.77.206.108:/var/www/pet-web/