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