readme: structure configsets et déploiement prod/stage

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-11 15:10:56 +01:00
co-authored by Claude Opus 5.5
parent a95fee0d36
commit 6ecfbdd621
+21 -1
View File
@@ -1,3 +1,23 @@
# Solr Backend Conf for Materio drupal 8 # Solr Backend Conf for Materio drupal 8
solr search backend used by search_api and search_api_solr in drupal 8 instance of materio.com solr search backend used by search_api and search_api_solr in drupal 8 instance of materio.com
## Structure
One configset per core (Solr standalone, `configSetBaseDir` in `solr.xml`):
- `materio_base/conf/` : core `materio_base` (search_api server `materio`)
- `materio_autocomplete/conf/` : core `materio_autocomplete` (search_api server `database_search_autocomplete`)
No index, no `core.properties` here: they live in each instance's SOLR_HOME.
## Deployment (CT-materio)
| branch | clone (= configSetBaseDir) | Solr instance |
|--------|---------------------------------------|---------------------------------------|
| prod | /var/www/d8.materio.com/solr | service `solr`, :8983, /var/solr |
| stage | /var/www/d8.stage.materio.com/solr | service `solr-stage`, :8984, /var/solr-stage |
`git push materio.com <branch>` → `post-receive` → `deploy-solr.sh` of the site:
`git pull --ff-only` in the clone, then RELOAD of both cores (no restart).
A failing RELOAD keeps the previous config live.