添加一个 37 game-server env 配置
This commit is contained in:
+12
-6
@@ -6,21 +6,27 @@ if [ $# != 1 ] ; then
|
||||
echo "dev: 同步代码到 dev 服务器上,作为测试服供服务开发使用"
|
||||
echo "monitor: 同步代码到 monitor 服务器上,用做监控和压力测试"
|
||||
echo "distribute: 同步代码到 distribute 服务器上,用做监控和压力测试"
|
||||
echo "sq1: 同步代码到 sq1 服务器上,用做 37 功能测试服 game-server 部署"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
port=22
|
||||
|
||||
if [ ${1} == 'stable' ] ; then
|
||||
destUrl="root@zyz:/root/zyz/"
|
||||
elif [ ${1} == 'alpha' ] ; then
|
||||
destUrl="root@zyzalpha:/root/zyz/"
|
||||
destUrl="root@zyzalpha:/root/zyz/"
|
||||
elif [ ${1} == 'dev' ] ; then
|
||||
destUrl="root@zyzdev:/root/zyz/"
|
||||
destUrl="root@zyzdev:/root/zyz/"
|
||||
elif [ ${1} == 'isbn' ] ; then
|
||||
destUrl="root@zyzisbn:/root/zyz/"
|
||||
destUrl="root@zyzisbn:/root/zyz/"
|
||||
elif [ ${1} == 'monitor' ] ; then
|
||||
destUrl="root@zyzmon:/root/zyz/"
|
||||
destUrl="root@zyzmon:/root/zyz/"
|
||||
elif [ ${1} == 'distribute' ] ; then
|
||||
destUrl="root@zyzdistribute:/root/zyz/"
|
||||
destUrl="root@zyzdistribute:/root/zyz/"
|
||||
elif [ ${1} == 'sq1' ] ; then
|
||||
destUrl="root@sq1:/root/zyz/"
|
||||
port=3737
|
||||
else
|
||||
echo "需要一个参数指明服务器"
|
||||
exit 1;
|
||||
@@ -28,7 +34,7 @@ fi
|
||||
|
||||
node ./config.js ${1}
|
||||
|
||||
rsync -av --include '.babelrc' --include '.eslintrc.js' --exclude '.*' --exclude 'logs' --exclude './game-server/node_modules' --exclude './game-server/node_modules' --exclude './game-server/dist' --exclude 'node_modules' --exclude 'bower_components' --exclude 'dist' --progress --inplace --no-owner --no-group --rsh='ssh -p22' . ${destUrl}
|
||||
rsync -av --include '.babelrc' --include '.eslintrc.js' --exclude-from='exclude-file.txt' --progress --inplace --no-owner --no-group --rsh='ssh -p'${port} . ${destUrl}
|
||||
git checkout ./game-server/config.json
|
||||
git checkout ./gm-server/config/env
|
||||
git checkout ./web-server/config/env
|
||||
|
||||
Reference in New Issue
Block a user