From bcb8f135a33bbb12f24f39c277673bcbdee9d6b9 Mon Sep 17 00:00:00 2001 From: luying Date: Wed, 9 Dec 2020 18:43:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9C=8D=E5=8A=A1=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pushdocker.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pushdocker.sh b/pushdocker.sh index 9e84704ea..74e7a4960 100755 --- a/pushdocker.sh +++ b/pushdocker.sh @@ -1,15 +1,18 @@ #!/bin/sh if [ $# != 1 ] ; then echo "需要1个参数" - echo "pro: 同步代码到 pro 服务器上,作为正式服使用" + echo "stable: 同步代码到 stable 服务器上,作为正式服使用" + echo "alpha: 同步代码到 alpha 服务器上,作为测试服供服务开发使用" echo "dev: 同步代码到 dev 服务器上,作为测试服供服务开发使用" exit 1; fi -if [ ${1} == 'pro' ] ; then +if [ ${1} == 'stable' ] ; then destUrl="root@zyz:/root/zyz/" +elif [ ${1} == 'alpha' ] ; then +destUrl="root@zyzalpha:/root/zyz/" elif [ ${1} == 'dev' ] ; then -destUrl="root@zyztest:/root/zyz/" +destUrl="root@zyzdev:/root/zyz/" else echo "需要一个参数指明服务器" exit 1;