Skip to content

Commit

Permalink
env
Browse files Browse the repository at this point in the history
  • Loading branch information
schpill committed Nov 4, 2017
1 parent fd2dbd0 commit b31529f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3817,6 +3817,12 @@ function conf($key, $default = null)

function appenv($key, $default = null)
{
$env = getenv($key);

if (false !== $env) {
return $env;
}

$env = path('base') . '/.env';

if (File::exists($env)) {
Expand Down

0 comments on commit b31529f

Please sign in to comment.