diff --git a/environments/default/bitrix/php_interface/dbconn.php b/environments/default/bitrix/php_interface/dbconn.php index 180ff44..51331c6 100644 --- a/environments/default/bitrix/php_interface/dbconn.php +++ b/environments/default/bitrix/php_interface/dbconn.php @@ -1,5 +1,7 @@ load(); +$dotenv = new Dotenv(); +$dotenv->load(realpath(__DIR__.'/../') . '/../.env'); define("BX_USE_MYSQLI", true); define("DBPersistent", false); diff --git a/environments/dev/bitrix/php_interface/dbconn.php b/environments/dev/bitrix/php_interface/dbconn.php index 180ff44..51331c6 100644 --- a/environments/dev/bitrix/php_interface/dbconn.php +++ b/environments/dev/bitrix/php_interface/dbconn.php @@ -1,5 +1,7 @@ load(); +$dotenv = new Dotenv(); +$dotenv->load(realpath(__DIR__.'/../') . '/../.env'); define("BX_USE_MYSQLI", true); define("DBPersistent", false); diff --git a/environments/prod/bitrix/php_interface/dbconn.php b/environments/prod/bitrix/php_interface/dbconn.php index 180ff44..51331c6 100644 --- a/environments/prod/bitrix/php_interface/dbconn.php +++ b/environments/prod/bitrix/php_interface/dbconn.php @@ -1,5 +1,7 @@ load(); +$dotenv = new Dotenv(); +$dotenv->load(realpath(__DIR__.'/../') . '/../.env'); define("BX_USE_MYSQLI", true); define("DBPersistent", false);