deploy.sh 314 B

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