From dc2629aa1d252f9cd1fd128d684f82cc1e36627e Mon Sep 17 00:00:00 2001 From: Erol Uysal Date: Sun, 22 Sep 2019 23:49:19 +0300 Subject: [PATCH] added environment variables and changed connection client --- .../elastica-bundle/5.0/config/packages/fos_elastica.yaml | 2 +- friendsofsymfony/elastica-bundle/5.0/manifest.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/friendsofsymfony/elastica-bundle/5.0/config/packages/fos_elastica.yaml b/friendsofsymfony/elastica-bundle/5.0/config/packages/fos_elastica.yaml index 23b3a500..54f7abd3 100644 --- a/friendsofsymfony/elastica-bundle/5.0/config/packages/fos_elastica.yaml +++ b/friendsofsymfony/elastica-bundle/5.0/config/packages/fos_elastica.yaml @@ -1,6 +1,6 @@ # Read the documentation: https://github.com/FriendsOfSymfony/FOSElasticaBundle/blob/master/Resources/doc/setup.md fos_elastica: clients: - default: { host: localhost, port: 9200 } + default: { url: '%env(ELASTICSEARCH_URL)%' } indexes: app: null diff --git a/friendsofsymfony/elastica-bundle/5.0/manifest.json b/friendsofsymfony/elastica-bundle/5.0/manifest.json index 80328c99..43db785d 100644 --- a/friendsofsymfony/elastica-bundle/5.0/manifest.json +++ b/friendsofsymfony/elastica-bundle/5.0/manifest.json @@ -4,5 +4,8 @@ }, "copy-from-recipe": { "config/": "%CONFIG_DIR%/" + }, + "env": { + "ELASTICSEARCH_URL": "http://localhost:9200/" } }