diff --git a/app/Core/Application.php b/app/Core/Application.php index 95b2503..9a9635b 100644 --- a/app/Core/Application.php +++ b/app/Core/Application.php @@ -14,8 +14,11 @@ final class Application public function __construct(string $basePath) { - // 1. Load Environment Variables (Look one level up from Application folder) - $dotenv = Dotenv::createImmutable(dirname($basePath)); + // 1. Load Environment Variables (Point to the specific 'env' folder outside htdocs) + // Path: /home/intaleqapp-musadaq/env/ + $envPath = dirname(dirname(dirname($basePath))) . '/env'; + + $dotenv = Dotenv::createImmutable($envPath); $dotenv->load(); // 2. Set Timezone