asdasd
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
<?php
|
||||
$env = getenv('APP_ENV') ?: 'staging';
|
||||
$env = strtolower($env);
|
||||
$env = strtolower(getenv('APP_ENV') ?: 'staging');
|
||||
$env = $env === 'production' ? 'prod' : $env;
|
||||
|
||||
if ($env === 'production') {
|
||||
$path = __DIR__ . '/production/db.php';
|
||||
} else {
|
||||
$path = __DIR__ . '/' . $env . '/db.php';
|
||||
if (!is_file($path)) {
|
||||
$path = __DIR__ . '/staging/db.php';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user