This commit is contained in:
2026-01-24 00:23:12 +01:00
parent ed5d77bf6c
commit f0f9abdd66
2 changed files with 5 additions and 5 deletions

View File

@@ -1,9 +1,10 @@
<?php
$env = strtolower(getenv('APP_ENV') ?: 'staging');
$env = $env === 'production' ? 'prod' : $env;
$env = getenv('APP_ENV') ?: 'staging';
$env = strtolower($env);
$path = __DIR__ . '/' . $env . '/db.php';
if (!is_file($path)) {
if ($env === 'production') {
$path = __DIR__ . '/production/db.php';
} else {
$path = __DIR__ . '/staging/db.php';
}

View File

@@ -1 +0,0 @@