正在显示
1 个修改的文件
包含
6 行增加
和
1 行删除
@@ -48,7 +48,12 @@ public function pullCode() | @@ -48,7 +48,12 @@ public function pullCode() | ||
48 | { | 48 | { |
49 | $this->output('自动拉取代码: start.'); | 49 | $this->output('自动拉取代码: start.'); |
50 | 50 | ||
51 | - $shell = "cd /www/wwwroot/self_site && sudo git checkout . && sudo git pull 2>&1"; | 51 | + if(env('BT_PANEL') == 'http://112.74.203.101:8888'){ |
52 | + $shell = "cd /www/wwwroot/ai.cc && sudo git checkout . && sudo git pull 2>&1"; | ||
53 | + }else{ | ||
54 | + $shell = "cd /www/wwwroot/self_site && sudo git checkout . && sudo git pull 2>&1"; | ||
55 | + } | ||
56 | + | ||
52 | exec($shell, $out); | 57 | exec($shell, $out); |
53 | dump($out); | 58 | dump($out); |
54 | 59 |
-
请 注册 或 登录 后发表评论