From 0d3e1bee25b1e1426a24e738097275ce3dd10e77 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Wed, 8 May 2024 14:27:43 +0300 Subject: [PATCH] =?utf8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BF?= =?utf8?q?=D0=BE=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA=D0=B5?= =?utf8?q?=20=D0=BF=D0=BE=D0=B4=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8?= =?utf8?q?=D1=8F=20=D0=BA=20=D0=91=D0=94=20=D0=B8=D0=B7=20=D0=BA=D0=BE?= =?utf8?q?=D0=BD=D1=81=D0=BE=D0=BB=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/config/prod.console.config.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/erp24/config/prod.console.config.php b/erp24/config/prod.console.config.php index 10b700bf..e68d0822 100755 --- a/erp24/config/prod.console.config.php +++ b/erp24/config/prod.console.config.php @@ -34,18 +34,7 @@ return [ 'enablePrettyUrl' => true, 'showScriptName' => false, ], - 'db' => [ - 'class' => yii\db\Connection::class, - 'dsn' => strtr('mysql:host={host};dbname={dbname}', [ - '{host}' => getenv('DB_HOST') ?: $_CONFIG_SITE["mysql_host"], - '{dbname}' => getenv('DB_SCHEMA') ?: $_CONFIG_SITE["mysql_db"], - ]), - 'username' => getenv('DB_USER') ?: $_CONFIG_SITE["mysql_user"], - 'password' => getenv('DB_PASSWORD') ?: $_CONFIG_SITE["mysql_pass"], - 'charset' => 'utf8', - 'enableSchemaCache' => true, - 'schemaCacheDuration' => 300, - ], + 'db' => require dirname(__DIR__) . '/config/db.php', 'db2' => require dirname(__DIR__) . '/config/db2.php', 'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, -- 2.39.5