作者 刘锟

update

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