Browse Source

企业信息 增加字段

kphcdr 1 year ago
parent
commit
8a51232b56
1 changed files with 22 additions and 1 deletions
  1. 22 1
      sh/deploy.sh

+ 22 - 1
sh/deploy.sh

@@ -2,7 +2,28 @@
 echo "+-------------------------------------------------------------------+"
 echo "|              你正在使用虎头代码发布工具,请谨慎选择                      |"
 echo "+-------------------------------------------------------------------+"
+echo "|              0 发布到webtest    110 发布到线上                    |"
+echo "+-------------------------------------------------------------------+"
 echo "准备发布了?"
-git push
+
+read -p "" target
+if [ $target -eq 0 ]
+then
+echo  发布到webtest
+echo  发布到webtest
+echo  发布到webtest
+echo  发布到webtest
 ssh root@47.111.94.27  "cd /data/mf-test/www/liantiao/server; sh sh/pull.sh ; exit"
+
+elif [ $target -eq 110 ]
+then
+echo 准备发布到online
+echo 准备发布到online
+echo 准备发布到online
+echo 准备发布到online
+ssh root@60.204.155.199  "cd /www/wwwroot/shop.hengjiu-pt.cn/server; sh sh/pull.sh ; exit"
+else
+echo 不知道你要干啥
+fi
+
 echo 发布完成