Skip to content

Fix: Install webpacker before running the server #871

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

Merged
merged 1 commit into from
May 3, 2019
Merged

Fix: Install webpacker before running the server #871

merged 1 commit into from
May 3, 2019

Conversation

vysogot
Copy link
Contributor

@vysogot vysogot commented Mar 26, 2019

There is a not defined in config/webpacker.yml error when running the command from the readme:
rails new searchapp --skip --skip-bundle --template https://raw.github.com/vysogot/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/01-basic.rb

Here's the partial output from before the change:

run    rails server --port=3001 from "."
=> Booting Puma
=> Rails 6.0.0.beta3 application starting in development 
=> Run `rails server --help` for more startup options
RAILS_ENV=development environment is not defined in config/webpacker.yml, falling back to production environment
Exiting
Traceback (most recent call last):
	68: from bin/rails:4:in `<main>'
	67: from /Users/jgodawa/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0.beta3/lib/active_support/dependencies.rb:297:in `require'

The commit generates config/webpacker.yml file before it tries to run the server.

Fix the error: can't find config/webpack.yml
@vysogot
Copy link
Contributor Author

vysogot commented Mar 26, 2019

There are bundler errors in the CI, not much to do with the commit

@estolfo estolfo merged commit a67ecc1 into elastic:master May 3, 2019
@estolfo
Copy link
Contributor

estolfo commented May 3, 2019

thanks @vysogot !

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

Successfully merging this pull request may close these issues.

2 participants