作者 刘锟

update

... ... @@ -48,7 +48,12 @@ public function pullCode()
{
$this->output('自动拉取代码: start.');
$shell = "cd /www/wwwroot/self_site && sudo git checkout . && sudo git pull 2>&1";
if(env('BT_PANEL') == 'http://112.74.203.101:8888'){
$shell = "cd /www/wwwroot/ai.cc && sudo git checkout . && sudo git pull 2>&1";
}else{
$shell = "cd /www/wwwroot/self_site && sudo git checkout . && sudo git pull 2>&1";
}
exec($shell, $out);
dump($out);
... ...