ck преди 4 години
родител
ревизия
e129431a2c
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      handlers/GitHookHandler.py

+ 4 - 4
handlers/GitHookHandler.py

@@ -12,10 +12,10 @@ class DataCenerHook(BaseHandler):
 
 
 class QcWebHook(BaseHandler):
-    "部署代码"
+    " 部署代码"
     def post(self):
 
-        val = os.popen('cd /root/QcWebServer && git pull')
-        val2 = os.popen('cd /root/dev/QcWebServer && git pull')
+        val = os.popen('cd /root/QcWebServer && git pull')  # master
+        val2 = os.popen('cd /root/dev/QcWebServer && git pull')  # dev
         DingTalkUtils.send('QcWebServer代码更新:\n[master]\n '+val.read()+'\n[dev]\n'+val2.read())
-        self.write('ok')
+        self.write('ok')