From 74e0ca13080ab24d41fc34129588ed819f2d0dcb Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 10 Jan 2019 15:24:22 +0800 Subject: [PATCH] add publish_h5.sh --- .gitignore | 1 + scripts/publish_h5.sh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 scripts/publish_h5.sh diff --git a/.gitignore b/.gitignore index 52d0191..3945c51 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ __pycache__ *.pyc gitlab/repository +nohup.out \ No newline at end of file diff --git a/scripts/publish_h5.sh b/scripts/publish_h5.sh new file mode 100644 index 0000000..e856bf4 --- /dev/null +++ b/scripts/publish_h5.sh @@ -0,0 +1,7 @@ +rm /root/game1008h5.zip +cd /root/game1008h5 +zip -r /root/game1008h5.zip * +cd /root +scp game1008h5.zip root@login-test.kingsome.cn:/var/data/ +ssh root@login-test.kingsome.cn "cd /var/data && unzip -o -d game1008h5 game1008h5.zip" +echo 'publish ok'