deploy.sh 289 B

1234567891011
  1. #!/bin/bash
  2. cp -r dist/ dist-hipo/
  3. tar -zcvf dist-hipo.tar.gz ./dist-hipo
  4. scp dist-hipo.tar.gz /usr/share/nginx/html
  5. rm -rf dist-hipo
  6. rm -f dist-hipo.tar.gz
  7. cd /usr/share/nginx/html
  8. mv dist-hipo/ dist-hipo-bak-$(date +%Y-%m-%d-%H:%M:%S)/
  9. tar -zxvf dist-hipo.tar.gz
  10. rm -f dist-hipo.tar.gz