分布式部署:服务器分布式部署,扩缩容后路由的计算
This commit is contained in:
@@ -5,6 +5,7 @@ if [ $# != 1 ] ; then
|
||||
echo "alpha: 同步代码到 alpha 服务器上,作为测试服供服务开发使用"
|
||||
echo "dev: 同步代码到 dev 服务器上,作为测试服供服务开发使用"
|
||||
echo "monitor: 同步代码到 monitor 服务器上,用做监控和压力测试"
|
||||
echo "distribute: 同步代码到 distribute 服务器上,用做监控和压力测试"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
@@ -18,6 +19,8 @@ elif [ ${1} == 'isbn' ] ; then
|
||||
destUrl="root@zyzisbn:/root/zyz/"
|
||||
elif [ ${1} == 'monitor' ] ; then
|
||||
destUrl="root@zyzmon:/root/zyz/"
|
||||
elif [ ${1} == 'distribute' ] ; then
|
||||
destUrl="root@zyzdistribute:/root/zyz/"
|
||||
else
|
||||
echo "需要一个参数指明服务器"
|
||||
exit 1;
|
||||
|
||||
Reference in New Issue
Block a user