api/deploy.bat

6 lines
298 B
Batchfile

del code.tar.gz
C:\\cygwin64\\bin\\tar.exe -czf code.tar.gz ./*
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