部署:37服务器
This commit is contained in:
@@ -11,6 +11,7 @@ if [ $# != 1 ] ; then
|
||||
fi
|
||||
|
||||
port=22
|
||||
env=${1}
|
||||
|
||||
if [ ${1} == 'stable' ] ; then
|
||||
destUrl="root@zyz:/root/zyz/"
|
||||
@@ -30,6 +31,7 @@ elif [ ${1} == 'sq1' ] ; then
|
||||
elif [ ${1} == 'sq2' ] ; then
|
||||
destUrl="root@sq2:/root/zyz/"
|
||||
port=3737
|
||||
env='sq1'
|
||||
elif [ ${1} == 'sq3' ] ; then
|
||||
destUrl="root@sq3:/root/zyz/"
|
||||
port=3737
|
||||
@@ -38,7 +40,7 @@ else
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
node ./config.js ${1}
|
||||
node ./config.js ${env}
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user