used env var in the registers for the pool

This commit is contained in:
ArnabChatterjee20k
2025-05-16 17:53:44 +05:30
parent 5f7afa25ce
commit 26c3248375
+2 -1
View File
@@ -99,9 +99,10 @@ $register->set('logger', function () {
$register->set('pools', function () {
$group = new Group();
$dbScheme = System::getEnv('_APP_DB_SCHEME', 'mariadb');
$fallbackForDB = 'db_main=' . AppwriteURL::unparse([
'scheme' => 'mariadb',
'scheme' => $dbScheme,
'host' => System::getEnv('_APP_DB_HOST', 'mariadb'),
'port' => System::getEnv('_APP_DB_PORT', '3306'),
'user' => System::getEnv('_APP_DB_USER', ''),