Browse Source

automated solr configuration export en deploy localy

bach 2 years ago
parent
commit
b60aa7fae1
2 changed files with 11 additions and 0 deletions
  1. 3 0
      Makefile
  2. 8 0
      bin/update_solr_config.sh

+ 3 - 0
Makefile

@@ -50,3 +50,6 @@ phplegacy:
 
 redis:
 		docker exec -it materiod8_redis_1 bash
+
+update_solr_conf:
+		bin/update_solr_config.sh

+ 8 - 0
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