Browse Source

部署脚本

longmh 10 tháng trước cách đây
mục cha
commit
5bb77f4c1a
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      pro-deploy.ps1

+ 8 - 0
pro-deploy.ps1

@@ -0,0 +1,8 @@
+$compress = @{
+  Path             = ".\dist\*"
+  CompressionLevel = "Fastest"
+  DestinationPath  = ".\dist\dist.zip"
+}
+Compress-Archive @compress
+scp ./dist/dist.zip root@10.0.0.69:/app/front/digital-medicine-front
+ssh root@10.0.0.69 "cd /app/front/digital-medicine-front && ./deploy.sh"