mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Remove EnvironmentType Env var setting for test bootstrap
This commit is contained in:
parent
e77c7fe04c
commit
7a43bf182e
@ -4,13 +4,10 @@
|
||||
|
||||
use Dotenv\Loader;
|
||||
|
||||
$loader = new Loader(null);
|
||||
if (!getenv('SS_ENVIRONMENT_TYPE')) {
|
||||
$loader->setEnvironmentVariable('SS_ENVIRONMENT_TYPE', 'dev');
|
||||
}
|
||||
|
||||
/** @skipUpgrade */
|
||||
if (!getenv('SS_DATABASE_CLASS') && !getenv('SS_DATABASE_USERNAME')) {
|
||||
$loader = new Loader(null);
|
||||
// The default settings let us define the database config via environment vars
|
||||
// Database connection, including PDO and legacy ORM support
|
||||
switch (getenv('DB')) {
|
||||
|
Loading…
Reference in New Issue
Block a user