use hostname in environment detection.
This commit is contained in:
parent
4d0bc9e251
commit
355cbe35a5
|
@ -247,7 +247,7 @@ public static function detect_env(array $environments, $uri)
|
||||||
// we will simply return the environment for that URI pattern.
|
// we will simply return the environment for that URI pattern.
|
||||||
foreach ($patterns as $pattern)
|
foreach ($patterns as $pattern)
|
||||||
{
|
{
|
||||||
if (Str::is($pattern, $uri))
|
if (Str::is($pattern, $uri) or $pattern == gethostname())
|
||||||
{
|
{
|
||||||
return $environment;
|
return $environment;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue