From b60aa7fae130c8fdd8927e6e056f3574cc1b01f1 Mon Sep 17 00:00:00 2001 From: bach Date: Thu, 7 Oct 2021 22:18:55 +0200 Subject: [PATCH] automated solr configuration export en deploy localy --- Makefile | 3 +++ bin/update_solr_config.sh | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100755 bin/update_solr_config.sh diff --git a/Makefile b/Makefile index 93f2a77..fe75bda 100644 --- a/Makefile +++ b/Makefile @@ -50,3 +50,6 @@ phplegacy: redis: docker exec -it materiod8_redis_1 bash + +update_solr_conf: + bin/update_solr_config.sh \ No newline at end of file diff --git a/bin/update_solr_config.sh b/bin/update_solr_config.sh new file mode 100755 index 0000000..8b922c9 --- /dev/null +++ b/bin/update_solr_config.sh @@ -0,0 +1,8 @@ +#! /bin/bash + +docker exec -i materiod8_php_1 drush solr-gsc database_search_autocomplete config.zip +mkdir ressources/solr/ +mv public_html/web/config.zip ressources/solr/ +unzip -o ressources/solr/config.zip -d solr_cores/materio/conf +unzip -o ressources/solr/config.zip -d solr_cores/materio_autocomplete/conf +docker-compose restart solr-new