mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-11 15:37:57 +00:00
fix example file path, add existion check on config init
This commit is contained in:
parent
fdb119587e
commit
7254a4ae50
@ -16,7 +16,7 @@ if (!in_array($_SERVER['PHP_ENV'], ['default', 'mirror', 'dev', 'test', 'prod'])
|
||||
}
|
||||
|
||||
// Generate configuration file if not exists
|
||||
if (!file_exists(__DIR__ . '/../../env.' . $_SERVER['PHP_ENV'] . '.php'))
|
||||
if (!file_exists(__DIR__ . '/env.' . $_SERVER['PHP_ENV'] . '.php') && file_exists(__DIR__ . '/../../example/environment/env.example.php'))
|
||||
{
|
||||
if (copy(__DIR__ . '/../../example/environment/env.example.php', __DIR__ . '/env.' . $_SERVER['PHP_ENV'] . '.php'))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user