env
Rails 6.0.0 Ruby 2.6.0 puma Amazon Linux2
What
Railsアプリをデプロイした時にこのようなエラーが出力される
ActionView::Template::Error (Webpacker can't find application in /home/web/www/eloop-regular/public/packs/manifest.json. Possible causes: 1. You want to set webpacker.yml value of compile to true for your environment unless you are using the `webpack -w` or the webpack-dev-server. 2. webpack has not yet re-run to reflect updates. 3. You have misconfigured Webpacker's config/webpacker.yml file. 4. Your webpack configuration is not creating a manifest.
1. You want to set webpacker.yml value of compile to true for your environment unless you are using the webpack -w or the webpack-dev-server.
my config/webpacker.yml contains
production: <<: *default # Production depends on precompilation of packs prior to booting for performance. compile: false # Extract and emit a css file extract_css: true # Cache manifest.json for performance cache_manifest: true
2. webpack has not yet re-run to reflect updates.
以下のコマンドを走らせている
$ RAILS_ENV=production bundle exec rails webpacker:compile
3. You have misconfigured Webpacker's config/webpacker.yml file.
in development environment webpacker works correctly.
4. Your webpack configuration is not creating a manifest.
manifest.json is created
あなたの回答
tips
プレビュー