From d0d8cbed69dc33f71dafc4436cbe931571b8fa03 Mon Sep 17 00:00:00 2001 From: Jakub Godawa Date: Tue, 26 Mar 2019 11:50:11 +0100 Subject: [PATCH] Install webpacker before running the server Fix the error: can't find config/webpack.yml --- elasticsearch-rails/lib/rails/templates/01-basic.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/elasticsearch-rails/lib/rails/templates/01-basic.rb b/elasticsearch-rails/lib/rails/templates/01-basic.rb index 2de5f1436..6ab4ffb34 100644 --- a/elasticsearch-rails/lib/rails/templates/01-basic.rb +++ b/elasticsearch-rails/lib/rails/templates/01-basic.rb @@ -338,6 +338,10 @@ def search git tag: "basic" git log: "--reverse --oneline" +# ----- Install Webpacker ------------------------------------------------------------------------- + +run 'rails webpacker:install' + # ----- Start the application --------------------------------------------------------------------- unless ENV['RAILS_NO_SERVER_START']