Add update script.
All checks were successful
/ deploy-job (push) Successful in 0s

This commit was merged in pull request #67.
This commit is contained in:
2026-02-09 15:01:47 +01:00
parent 7bb3320e51
commit b553c15578
2 changed files with 19 additions and 1 deletions

View File

@@ -10,4 +10,4 @@ jobs:
- name: initial test
run: echo "test"
- name: get page
run: curl http://192.168.0.129:9001
run: curl http://192.168.0.129:9001/update

View File

@@ -0,0 +1,18 @@
<?php
namespace Krzysiej\RyobiCrawler\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
final class UpdateController extends BaseController
{
#[Route('/update', name: 'app_update')]
public function __invoke(Request $request): Response
{
$output = shell_exec('bin/update');
return new Response($output);
}
}