正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
@@ -57,6 +57,11 @@ public function pullCode() | @@ -57,6 +57,11 @@ public function pullCode() | ||
57 | exec($shell, $out); | 57 | exec($shell, $out); |
58 | dump($out); | 58 | dump($out); |
59 | 59 | ||
60 | + if(env('BT_PANEL') == 'http://47.88.53.252:40896'){ | ||
61 | + exec('cd /www/wwwroot/self_site2 && sudo git checkout . && sudo git pull 2>&1', $out); | ||
62 | + dump($out); | ||
63 | + } | ||
64 | + | ||
60 | $this->output('自动拉取代码: end.'); | 65 | $this->output('自动拉取代码: end.'); |
61 | 66 | ||
62 | return true; | 67 | return true; |
-
请 注册 或 登录 后发表评论