From 29089e1c567b49a87efc1f04ae2fa1338eb1674f Mon Sep 17 00:00:00 2001 From: Youssef Bahi Date: Wed, 15 Jan 2025 20:38:00 +0000 Subject: [PATCH] Add docker compose and fix app --- app/Views/DefaultView.php | 3 ++- database/db.sqlite | Bin 12288 -> 12288 bytes docker-compose.yml | 15 +++++++++++++++ index.php | 2 +- 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 docker-compose.yml diff --git a/app/Views/DefaultView.php b/app/Views/DefaultView.php index 5d2fc5e..604745a 100644 --- a/app/Views/DefaultView.php +++ b/app/Views/DefaultView.php @@ -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 << diff --git a/database/db.sqlite b/database/db.sqlite index 97ce6f974f58f63e3fa17cd8b3130b0ff9175daa..12280dec09953c66bdcaa1555b5d0bcdebed2825 100644 GIT binary patch delta 210 zcmZojXh@hK&B!`Y##xY+K`)t+mw|zSiC>R_zky$Gv!K8}zR9}$L7a7r?BbG=jE&)w zJNVUkGE)>h{X$&bU4s;KCa>pLnf!oXg@=WIB?JFc{>%J(_*Vio&g4%NWMO3xWt4U* zD$Ott%Ph_;$uAORW@V6Nl=d&pO{~mKRFHxS3ox-V2s26trzVL*MI;$n8B`giBlAm( xi&N7SoE$worJRdW6M<%cT*%1(g@OOeWq2zn))rVSxT-{xRCO_a;VPoWf#lZh+v!KEQegzRmR%u3QhRFQV;^NdaDd(cp k#FG3Xkg<&XUm5tn0#!ZcpBTWw&B@3t$ytz^Uyzdu0C{O54gdfE diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a7c5a14 --- /dev/null +++ b/docker-compose.yml @@ -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 diff --git a/index.php b/index.php index 9b5d89e..4d94d68 100644 --- a/index.php +++ b/index.php @@ -42,4 +42,4 @@ require_once "routes/api.php"; require_once "routes/web.php"; $router->run(); -// ------------------------------------------------------------------ \ No newline at end of file +// ------------------------------------------------------------------