From 0d460f1ed8eec4bcd72640f5cfff6136ab6d25f0 Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Mon, 15 Jan 2024 00:44:06 +0100 Subject: [PATCH] test --- config/parameters_test.yaml | 2 +- config/services.yaml | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/config/parameters_test.yaml b/config/parameters_test.yaml index e9a3b6c80..3082dffed 100644 --- a/config/parameters_test.yaml +++ b/config/parameters_test.yaml @@ -1,2 +1,2 @@ parameters: - database_path: "%kernel.project_dir%/data/db/wallabag%wallabag_dbname_suffix%.sqlite" + env(DATABASE_URL): sqlite:///%kernel.project_dir%/data/db/wallabag%wallabag_dbname_suffix%.sqlite?charset=utf8 diff --git a/config/services.yaml b/config/services.yaml index dfbb9c52d..2d7f7e56b 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -15,7 +15,14 @@ parameters: # Allows to use the live reload feature for changes in assets use_webpack_dev_server: false craue_config.cache_adapter.class: Craue\ConfigBundle\CacheAdapter\SymfonyCacheComponentAdapter - env(DATABASE_URL): '%database_scheme%://%database_user%:%database_password%@%database_host%:%database_port%/%database_name%?unix_socket=%database_socket%&charset=%database_charset%' + +when@dev: + parameters: + env(DATABASE_URL): '%database_scheme%://%database_user%:%database_password%@%database_host%:%database_port%/%database_name%?unix_socket=%database_socket%&charset=%database_charset%' + +when@prod: + parameters: + env(DATABASE_URL): '%database_scheme%://%database_user%:%database_password%@%database_host%:%database_port%/%database_name%?unix_socket=%database_socket%&charset=%database_charset%' services: # default configuration for services in *this* file