build-tar-scp.sh 429 B

1234567891011
  1. #!/bin/bash
  2. npm run build
  3. echo '------------------build success!-------------------'
  4. mv dist webqn.scxbzw.com
  5. tar -czf webqn.scxbzw.com.tgz webqn.scxbzw.com
  6. echo '------------------tar success!---------------------'
  7. scp webqn.scxbzw.com.tgz kite@47.92.195.194:/tmp
  8. echo '------------------scp success!---------------------'
  9. rm -r webqn.scxbzw.com webqn.scxbzw.com.tgz
  10. echo '------------------delete build files---------------'