Fixes paths for docker compose
All checks were successful
/ build (push) Successful in 36s

This commit is contained in:
Michel 2024-11-07 18:59:01 +01:00
parent a1adc59ad9
commit 0962b609c4
3 changed files with 29 additions and 5 deletions

View file

@ -6,7 +6,7 @@ services:
- 8080:80
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./../..:/app
- ./..:/app
- caddy_config:/config
- caddy_data:/data
depends_on:
@ -15,7 +15,7 @@ services:
container_name: gamesshop_php
build: .
volumes:
- ./../..:/app
- ./..:/app
volumes:
caddy_data:

View file

@ -6,7 +6,7 @@ services:
- 8006:80
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./../..:/app
- ./..:/app
- caddy_config:/config
- caddy_data:/data
depends_on:
@ -15,7 +15,7 @@ services:
container_name: gamesshop_php
build: .
volumes:
- ./../..:/app
- ./..:/app
volumes:
caddy_data:

View file

@ -1,2 +1,26 @@
<?php
declare(strict_types=1);
use GamesShop\ContainerHandler;
use GamesShop\DoctrineManager;
use GamesShop\Environment\EnvironmentHandler;
use GamesShop\Routing\Router;
use Laminas\HttpHandlerRunner\Emitter\SapiEmitter;
use Whoops\Handler\HandlerInterface;
use Whoops\Handler\PrettyPageHandler;
use Whoops\Run;
require_once __DIR__ . '/../src/php/bootstrap.php';
$whoops = new Run();
$prettyPageHandler = new PrettyPageHandler();
$whoops->pushHandler($prettyPageHandler);
$whoops->register();
ContainerHandler::getInstance()->addShared(HandlerInterface::class, $prettyPageHandler);
$router = ContainerHandler::getInstance()->get(Router::class);
$result = $router->route();
(new SapiEmitter)->emit($result);