wip
This commit is contained in:
@@ -8,13 +8,9 @@ use Illuminate\Support\Facades\Process;
|
|||||||
|
|
||||||
class GitPullController extends Controller
|
class GitPullController extends Controller
|
||||||
{
|
{
|
||||||
public function index(Request $request)
|
public function index()
|
||||||
{
|
{
|
||||||
$request->validate([
|
$result = Process::path(base_path())->run('bash git_pull.sh');
|
||||||
'command' => ['sometimes', 'string'],
|
|
||||||
]);
|
|
||||||
|
|
||||||
$result = Process::path(base_path())->run('bash ok.sh');
|
|
||||||
|
|
||||||
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