From 0962b609c4222ac197438cdc15c7eb1a06fe26f9 Mon Sep 17 00:00:00 2001 From: Michel Date: Thu, 7 Nov 2024 18:59:01 +0100 Subject: [PATCH] Fixes paths for docker compose --- deploy/docker-compose-dev.yml | 4 ++-- deploy/docker-compose.yml | 4 ++-- src/php/index.prod.php | 26 +++++++++++++++++++++++++- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/deploy/docker-compose-dev.yml b/deploy/docker-compose-dev.yml index 91f31b2..18df667 100644 --- a/deploy/docker-compose-dev.yml +++ b/deploy/docker-compose-dev.yml @@ -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: diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml index d1be564..8530348 100644 --- a/deploy/docker-compose.yml +++ b/deploy/docker-compose.yml @@ -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: diff --git a/src/php/index.prod.php b/src/php/index.prod.php index 79414ee..06044b7 100644 --- a/src/php/index.prod.php +++ b/src/php/index.prod.php @@ -1,2 +1,26 @@ pushHandler($prettyPageHandler); +$whoops->register(); + +ContainerHandler::getInstance()->addShared(HandlerInterface::class, $prettyPageHandler); + +$router = ContainerHandler::getInstance()->get(Router::class); +$result = $router->route(); + +(new SapiEmitter)->emit($result); \ No newline at end of file