rd-admin-java/bin/update.sh

8 lines
205 B
Bash

_pwd=/mnt/rd.ydool.org
_ip=122.112.240.73
cd ../
mvn clean package
scp target/build/*.jar root@${_ip}:${_pwd}
#scp target/build/lib/*.* root@${_ip}:${_pwd}/lib
ssh root@${_ip} "cd ${_pwd}; sh ./start.sh"