ck 4 năm trước cách đây
mục cha
commit
45b210e634
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      handlers/GitHookHandler.py

+ 1 - 2
handlers/GitHookHandler.py

@@ -6,7 +6,6 @@ from model import DingTalkUtils
 class DataCenerHook(BaseHandler):
 
     def post(self):
-        os.system('cd /home/qc/DataCenter')
-        val= os.popen('git pull')
+        val= os.popen('cd /home/qc/DataCenter && git pull')
         self.write('ok')
         DingTalkUtils.send('DataCenter代码更新:\n '+val.read())