wip
This commit is contained in:
@@ -15,8 +15,8 @@ class GitPullController extends Controller
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$result = Process::pipe(function (Pipe $pipe) {
|
$result = Process::pipe(function (Pipe $pipe) {
|
||||||
$pipe->command('ls -la '.base_path());
|
$pipe->command('sudo su');
|
||||||
// $pipe->command('grep -i "laravel"');
|
$pipe->command('git pull');
|
||||||
});
|
});
|
||||||
|
|
||||||
return $result->successful() ? '<pre>'.$result->output().'</pre>' : $result->errorOutput();
|
return $result->successful() ? '<pre>'.$result->output().'</pre>' : $result->errorOutput();
|
||||||
|
|||||||
Reference in New Issue
Block a user