Skip to content
Permalink
Browse files

Read environment variables using $_SERVER, not getenv

  • Loading branch information...
StijnVrolijk committed Jun 25, 2019
1 parent 0253798 commit 5b2e672b1a607b29deb3e77163535fc12e2639c0
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.php
@@ -21,8 +21,8 @@
use Symfony\Component\Debug\Debug;
// get environment and debug mode from environment variables
$env = getenv('FORK_ENV') ?: 'prod';
$debug = getenv('FORK_DEBUG') === '1';
$env = $_SERVER['FORK_ENV'] ?: 'prod';
$debug = $_SERVER['FORK_DEBUG'] === '1';
// Fork has not yet been installed
$parametersFile = __DIR__ . '/app/config/parameters.yml';

0 comments on commit 5b2e672

Please sign in to comment.
You can’t perform that action at this time.