wip
This commit is contained in:
1 parent
7c541ab9af
commit
b81e9c7d31
1 file changed
+1
-3
@@ -13,9 +13,7 @@ public function index(Request $request)
|
|||||||
'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