Skip to content
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

Open
larskluge opened this issue Jul 15, 2015 · 4 comments
Open

Initial run of generator fails #23

larskluge opened this issue Jul 15, 2015 · 4 comments

Comments

@larskluge
Copy link

bundle exec rails g spree_elasticsearch:install fails to run without having a valid config/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.

@javereec
Copy link
Owner

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.

@jspizziri
Copy link

can the order of install steps be updated so that the elasticsearch.yml is added before the generator is run?

@javereec
Copy link
Owner

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.

@jkelleyj
Copy link

jkelleyj commented Mar 8, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants