作者 刘锟

update

@@ -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