Files
shape3d.it/config/config.php
2026-01-23 23:15:06 +01:00

12 lines
219 B
PHP

<?php
$env = getenv('APP_ENV') ?: 'staging';
$env = strtolower($env);
if ($env === 'production') {
$path = __DIR__ . '/production/db.php';
} else {
$path = __DIR__ . '/staging/db.php';
}
return require $path;