From 762cfe2b2d2c1d04c9af2f1a0031987717a0cc1b Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Tue, 23 Jul 2024 14:23:03 +0300 Subject: [PATCH] Adding support for environment variables specified with .env root file --- env.inc.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/env.inc.php b/env.inc.php index 737dc43..9dbd2cb 100644 --- a/env.inc.php +++ b/env.inc.php @@ -26,6 +26,8 @@ function put_env(&$argv) { global $GAME_ROOT; + _set_env_vars_from_file(); + $env = ''; $filtered = array(); for($i=0;$i $v) + putenv("$k=$v"); +} + function set_root_env_name($root_name) { $GLOBALS['TASKMAN_ROOT_ENV_NAME'] = $root_name;