- #! /bin/bash
- echo 'update code'
- git reset HEAD --hard
- git pull origin master
- echo 'pack'
- bee pack -be GOOS=linux -exr='^[0-9a-f]|[*.iml]$'
- echo 'upload'
- scp beepkg.tar.gz jjz@192.168.1.10:/root/goapp/beepkg
- echo 'restart'
- ssh jjz@192.168.1.10 'bash -s' < restart.sh
|