toktok-server-prod.sh 536 B

12345678910111213141516171819
  1. #!/usr/bin/env bash
  2. jar_package=`find /Users/shanpin/IdeaProjects/toktok-server/toktok-parent/toktok-$1/target -name "*.jar"`
  3. echo "jar package ${jar_package}"
  4. echo "banruo#!#303132"
  5. echo " 1) rsync to bru@119.23.70.213:/srv/server/toktok-server/toktok-$1"
  6. rsync --delete -avz ${jar_package} bru@119.23.70.213:/srv/server/toktok-server/toktok-$1/toktok-$1.jar
  7. echo " 4) bru@119.23.70.213 run.sh restart..."
  8. ssh -l bru 119.23.70.213 "
  9. cd /srv/server/toktok-server/toktok-$1/;
  10. /usr/bin/sh run.sh;"
  11. echo done!
  12. exit 0