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