wip
This commit is contained in:
@@ -13,9 +13,7 @@ class GitPullController extends Controller
|
|||||||
'command' => ['sometimes', 'string']
|
'command' => ['sometimes', 'string']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return $request->filled('command') ? 'ok' : 'ko';
|
$result = Process::path(base_path())->run('git pull');
|
||||||
|
|
||||||
$result = Process::path(base_path())->run('ls -la');
|
|
||||||
|
|
||||||
return '<pre>'.$result->output().'</pre>';
|
return '<pre>'.$result->output().'</pre>';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user