Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
meisterT committed Nov 25, 2024
1 parent 3045d14 commit 95f989b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/config/load_db_secrets.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ function get_app_secret(): string
'DATABASE_URL' => get_db_url(),
];

fprintf(STDERR, "Loaded env: %s\n", json_encode($env));

foreach ($env as $k => $v) {
$_ENV[$k] = $_ENV[$k] ?? (isset($_SERVER[$k]) && !str_starts_with($k, 'HTTP_') ? $_SERVER[$k] : $v);
}

0 comments on commit 95f989b

Please sign in to comment.