ddev / ddev-solr

Solr service for DDEV
Apache License 2.0
4 stars 5 forks source link

Generate Collection on build? #24

Closed cosmicdreams closed 3 months ago

cosmicdreams commented 11 months ago

Hello there:

I was wondering if it is already possible to setup a solr server with this plugin and have a collection automatically created. For my Drupal builds I need to have a named collection created in my local. Right now I think I have to manually create that collection. But it would be cool if it could be created for me based up some configuration I provide the plugin.

Each person who spins up the instance will need to do this manual step. My best solution that I can find is documentation. Was hoping I could automate this step.

mkalkbrenner commented 11 months ago

There's a drush command to create the collection. It is safe to run it even if the collection already exists (in this case the collection will be updated). So you could add it to ddev's post_start hook.