deploy.sh 352 B

123456789101112
  1. #!/bin/bash
  2. # 执行 webpack 打包
  3. export NODE_OPTIONS=--openssl-legacy-provider
  4. webpack --mode production
  5. # 上传到服务器
  6. scp -r ../__dist/pmr-access-control/index.js root@112.124.10.239:/home/pmr/pmr-access-control
  7. # 重启 Docker
  8. ssh root@112.124.10.239 "docker restart pmr-access-control && docker logs pmr-access-control --tail 100 -ft"