- #!/bin/bash
- # 执行 webpack 打包
- webpack --mode production
- # 上传到服务器
- scp -r ../__dist/pmr-biz-manager/index.js root@112.124.10.239:/home/pmr/pmr-biz-manager
- # 重启 Docker
- ssh root@112.124.10.239 "docker restart pmr-biz-manager && docker logs pmr-biz-manager --tail 100 -ft"
|