소스 검색

生产环境

wuyi 1 개월 전
부모
커밋
2ef52270e7
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      deploy.sh

+ 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-admin/