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