api/deploy.bat

6 lines
298 B
Batchfile
Raw Normal View History

del code.tar.gz
C:\\cygwin64\\bin\\tar.exe -czf code.tar.gz ./*
2019-08-15 13:05:13 +00:00
scp -i ./id_rsa code.tar.gz ubuntu@118.24.238.198:/var/www/html/api/
ssh -t -i ./id_rsa ubuntu@118.24.238.198 tar -zxvf /var/www/html/api/code.tar.gz -C /var/www/html/api/
ssh -t -i ./id_rsa ubuntu@118.24.238.198 rm code.tar.gz