Jelajahi Sumber

生成环境

wuyi 1 bulan lalu
induk
melakukan
5b17167d5a
2 mengubah file dengan 11 tambahan dan 1 penghapusan
  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/