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