BUG Ensure safe fallback for missing .env file to dev mode.

This commit is contained in:
Damian Mooyman 2017-02-28 10:53:41 +13:00 committed by Sam Minnée
parent 646816c818
commit f0ca8eb84b

View File

@ -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