BUG Ensure safe fallback for missing `.env` file to dev mode.
This commit is contained in:
parent
646816c818
commit
f0ca8eb84b
|
@ -20,6 +20,9 @@ class CoreInitializationPass implements CompilerPassInterface
|
|||
{
|
||||
// Connect to database and build manifest
|
||||
$_GET['flush'] = 1;
|
||||
if (!getenv('SS_ENVIRONMENT_TYPE')) {
|
||||
putenv('SS_ENVIRONMENT_TYPE=dev');
|
||||
}
|
||||
require_once('Core/Core.php');
|
||||
|
||||
// Include bootstrap file
|
||||
|
|
Loading…
Reference in New Issue