- #!/bin/bash
- set -e
- yarn build
- cp .env.production dist/.env
- cp package.json dist/package.json
- rsync --exclude='node_modules/' -ravzh --delete -e "ssh -o StrictHostKeyChecking=no" ./dist/ root@8.210.167.152:/var/www/junma-api/
- ssh -o StrictHostKeyChecking=no root@8.210.167.152 "cd /var/www/junma-api
- yarn
- pm2 restart junma-api
- "
|