allow e.g. Docker to override default tenant via environment variable
This commit is contained in:
parent
4da713ae56
commit
0716661402
@ -75,7 +75,12 @@ System::$BeforeLaunchEventHandler = function($path)
|
||||
|
||||
if (count($path) == 0)
|
||||
{
|
||||
System::Redirect("~/" . System::$Configuration["Application.DefaultTenant"], true);
|
||||
$defaultTenantName = System::$Configuration["Application.DefaultTenant"];
|
||||
if (isset($_ENV["DEFAULT_TENANTNAME"]))
|
||||
{
|
||||
$defaultTenantName = $_ENV["DEFAULT_TENANTNAME"];
|
||||
}
|
||||
System::Redirect("~/" . $defaultTenantName, true);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user