|
@@ -1,11 +1,9 @@
|
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
|
-set -e
|
|
|
|
|
-
|
|
|
|
|
yarn build
|
|
yarn build
|
|
|
cp .env.production dist/.env
|
|
cp .env.production dist/.env
|
|
|
cp package.json dist/package.json
|
|
cp package.json dist/package.json
|
|
|
-rsync --exclude='node_modules/' -ravzh --delete -e "ssh -i /Volumes/1TB-SSD/Key/aws6.pem -o StrictHostKeyChecking=no" ./dist/ admin@52.197.128.126:/var/www/tweb-api/
|
|
|
|
|
-ssh -i /Volumes/1TB-SSD/Key/aws6.pem -o StrictHostKeyChecking=no admin@52.197.128.126 "cd /var/www/tweb-api
|
|
|
|
|
|
|
+rsync --exclude='node_modules/' -ravzh --delete -e "ssh -o StrictHostKeyChecking=no" ./dist/ root@54.248.167.86:/var/www/tweb-api/
|
|
|
|
|
+ssh -o StrictHostKeyChecking=no root@54.248.167.86 "cd /var/www/tweb-api
|
|
|
yarn
|
|
yarn
|
|
|
pm2 restart tweb-api
|
|
pm2 restart tweb-api
|
|
|
"
|
|
"
|