...
|
...
|
@@ -48,7 +48,12 @@ public function pullCode() |
|
|
{
|
|
|
$this->output('自动拉取代码: start.');
|
|
|
|
|
|
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);
|
|
|
|
...
|
...
|
|