deploy.sh 317 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@54.248.167.86:/var/www/tweb-api/
  6. ssh -o StrictHostKeyChecking=no root@54.248.167.86 "cd /var/www/tweb-api
  7. yarn
  8. pm2 restart tweb-api
  9. "