mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
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
|
// Connect to database and build manifest
|
||||||
$_GET['flush'] = 1;
|
$_GET['flush'] = 1;
|
||||||
|
if (!getenv('SS_ENVIRONMENT_TYPE')) {
|
||||||
|
putenv('SS_ENVIRONMENT_TYPE=dev');
|
||||||
|
}
|
||||||
require_once('Core/Core.php');
|
require_once('Core/Core.php');
|
||||||
|
|
||||||
// Include bootstrap file
|
// Include bootstrap file
|
||||||
|
Loading…
Reference in New Issue
Block a user