added environment variables and changed connection client

This commit is contained in:
Erol Uysal
2019-09-22 23:49:19 +03:00
parent f5b77de6d4
commit dc2629aa1d
2 changed files with 4 additions and 1 deletions
@@ -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
@@ -4,5 +4,8 @@
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"ELASTICSEARCH_URL": "http://localhost:9200/"
}
}