-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial run of generator fails #23
Comments
That is correct. It used to work, but somewhere the behaviour was changed in rails and I haven't found a way to circumvent this. |
can the order of install steps be updated so that the elasticsearch.yml is added before the generator is run? |
That is exactly what I can't find. I've really looked into other gems, but haven't found anything that does something similar. If you can find something and submit a pull request, I'm more than happy to merge it. |
FYI - this issue was still there for me if I ran the touch command to create the elasticsearch.yml file. In rails 4.2.5, if I run the install command without that file present, it works and successfully generates the config file. |
bundle exec rails g spree_elasticsearch:install
fails to run without having a validconfig/elasticsearch.yml
file in your project already (which the generator is supposed to create). Reason: the generator loads the project dependencies which of one is the settings logic piece that requires the config file to exist.The text was updated successfully, but these errors were encountered: