Skip to content

Commit

Permalink
Add docker compose and fix app
Browse files Browse the repository at this point in the history
  • Loading branch information
you97ssef committed Jan 15, 2025
1 parent e983637 commit 29089e1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/Views/DefaultView.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public function renderBody(): string
HTML;
}

$adding_name_route = Router::urlFor($this->http, "/AddName");
// $adding_name_route = Router::urlFor($this->http, "/AddName");
$adding_name_route = "http://yaravel.bahi.ovh/AddName";

return <<<HTML
<section class="container">
Expand Down
Binary file modified database/db.sqlite
Binary file not shown.
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
services:
yaravel:
image: php:apache
container_name: yaravel
restart: always
ports:
- 9001:80
volumes:
- .:/var/www/html
networks:
- shared_network

networks:
shared_network:
external: true
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
require_once "routes/api.php";
require_once "routes/web.php";
$router->run();
// ------------------------------------------------------------------
// ------------------------------------------------------------------

0 comments on commit 29089e1

Please sign in to comment.