deploy.sh 328 B

1234567891011
  1. #!/bin/bash
  2. set -e
  3. yarn build
  4. cp .env.production dist/.env
  5. cp package.json dist/package.json
  6. rsync --exclude='node_modules/' -ravzh --delete -e "ssh -o StrictHostKeyChecking=no" ./dist/ root@8.210.167.152:/var/www/junma-api/
  7. ssh -o StrictHostKeyChecking=no root@8.210.167.152 "cd /var/www/junma-api
  8. yarn
  9. pm2 restart junma-api
  10. "