diff --git a/public/index.php b/public/index.php index 3496c60564ce8bc1a8b88dba7abf2dfd339876cd..24fcb561951799b6f84459acf5e4fac06abc5066 100644 --- a/public/index.php +++ b/public/index.php @@ -1,7 +1,11 @@ <?php - error_reporting(E_ALL); - ini_set('display_errors', 1); + $env = getenv('DAGOJEK_ENV'); + if (!$env || $env == "development") { + $env = "development"; + error_reporting(E_ALL); + ini_set('display_errors', 1); + } require __DIR__.'/../src/app.php';