添加漏提交的代码

处理老用户缺 towerLv 字段问题
This commit is contained in:
liangtongchuan
2020-10-13 00:08:59 +08:00
parent 1fe7543da1
commit 1c455a9b49
6 changed files with 27 additions and 23 deletions
+14 -14
View File
@@ -1,17 +1,17 @@
#!/bin/sh
#if [ $# != 1 ] ; then
# echo "需要1个参数"
# echo "pro: 同步代码到 pro 服务器上,作为正式服使用"
# echo "dev: 同步代码到 dev 服务器上,作为测试服供服务开发使用"
# exit 1;
#fi
#
#if [ ${1} == 'pro' ] ; then
# destUrl="root@zyz:/root/zyz/"
#elif [ ${1} == 'dev' ] ; then
if [ $# != 1 ] ; then
echo "需要1个参数"
echo "pro: 同步代码到 pro 服务器上,作为正式服使用"
echo "dev: 同步代码到 dev 服务器上,作为测试服供服务开发使用"
exit 1;
fi
if [ ${1} == 'pro' ] ; then
destUrl="root@zyz:/root/zyz/"
elif [ ${1} == 'dev' ] ; then
destUrl="root@zyztest:/root/zyz/"
#else
# echo "需要一个参数指明服务器"
# exit 1;
#fi
else
echo "需要一个参数指明服务器"
exit 1;
fi
rsync -av --include '.babelrc' --include '.eslintrc.js' --exclude '.*' --exclude './game-server/node_modules' --exclude './game-server/node_modules' --exclude 'node_modules' --exclude 'bower_components' --exclude 'dist' --progress --inplace --no-owner --no-group --rsh='ssh -p22' . ${destUrl}