新增服务器
This commit is contained in:
+6
-3
@@ -1,15 +1,18 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ $# != 1 ] ; then
|
if [ $# != 1 ] ; then
|
||||||
echo "需要1个参数"
|
echo "需要1个参数"
|
||||||
echo "pro: 同步代码到 pro 服务器上,作为正式服使用"
|
echo "stable: 同步代码到 stable 服务器上,作为正式服使用"
|
||||||
|
echo "alpha: 同步代码到 alpha 服务器上,作为测试服供服务开发使用"
|
||||||
echo "dev: 同步代码到 dev 服务器上,作为测试服供服务开发使用"
|
echo "dev: 同步代码到 dev 服务器上,作为测试服供服务开发使用"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${1} == 'pro' ] ; then
|
if [ ${1} == 'stable' ] ; then
|
||||||
destUrl="root@zyz:/root/zyz/"
|
destUrl="root@zyz:/root/zyz/"
|
||||||
|
elif [ ${1} == 'alpha' ] ; then
|
||||||
|
destUrl="root@zyzalpha:/root/zyz/"
|
||||||
elif [ ${1} == 'dev' ] ; then
|
elif [ ${1} == 'dev' ] ; then
|
||||||
destUrl="root@zyztest:/root/zyz/"
|
destUrl="root@zyzdev:/root/zyz/"
|
||||||
else
|
else
|
||||||
echo "需要一个参数指明服务器"
|
echo "需要一个参数指明服务器"
|
||||||
exit 1;
|
exit 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user