restart cms2

This commit is contained in:
Shaun Chyxion 2020-09-22 01:24:53 +08:00
parent 941ace4cd3
commit 80f4f7cf8b

View File

@ -67,6 +67,9 @@ if [ "$2" == "test" ]; then
elif [ "$2" == "prod" ]; then
echo "Deploy prod."
deploy_server 'xiandou@localhost' $APP $JAR '4025'
if [ "$1" == "cms" ]; then
ssh -p 4025 xiandou@localhost '/data/program/cms2/bin/stop.sh && /data/program/cms2/bin/start.sh'
fi
fi
popd > /dev/null