部署:37服务器

This commit is contained in:
luying
2021-12-28 21:24:12 +08:00
parent 3f5f6abbfe
commit 74a1a4221e
6 changed files with 10 additions and 7 deletions

View File

@@ -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