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 <?php
$env = strtolower(getenv('APP_ENV') ?: 'staging'); $env = getenv('APP_ENV') ?: 'staging';
$env = $env === 'production' ? 'prod' : $env; $env = strtolower($env);
$path = __DIR__ . '/' . $env . '/db.php'; if ($env === 'production') {
if (!is_file($path)) { $path = __DIR__ . '/production/db.php';
} else {
$path = __DIR__ . '/staging/db.php'; $path = __DIR__ . '/staging/db.php';
} }

View File

@@ -1 +0,0 @@