algolia / scout-extended

Scout Extended: The Full Power of Algolia in Laravel
https://www.algolia.com/doc/framework-integration/laravel/getting-started/introduction-to-scout-extended/
MIT License
400 stars 87 forks source link

I can't find an easy way to git the indices configuration #204

Open guerinj opened 5 years ago

guerinj commented 5 years ago

Hi,

We have recently upgraded to scout-extended from v1. Previously we used to store the indices config in our code base.

But with the new scout:sync behaviour, the configuration files contains the prefix.

On my dev configuration I prefix all indices with dev_ so all configuration files are scout-dev-foo.php

But to update the production configuration upon deployment, I need a scout-prod-foo.php file

What I'd like would be to have a scout-foo.php config files and the scout:sync method would add the prefix upon synchronization.

Am i missing an easy way to fix this without having to rename the files when deploying ?

nunomaduro commented 5 years ago

Not today - I am sorry.

Would you like to tackle this? How about this pull request? https://github.com/algolia/scout-extended/pull/135/files