mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7192 from dhensby/pulls/4/bootstrap-simplified
Remove EnvironmentType Env var setting for test bootstrap
This commit is contained in:
commit
4af84a2f61
@ -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