rails6の本番環境にて、
$ rails webpacker:compile RAILS_ENV=production $ rails unicorn:start
と実行すると、サーバー自体は立ち上がるのですが、log/production.logに以下のエラーが出ます。
[xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx] ActionView::Template::Error (The asset "application.css" is not present in the asset pipeline.): [xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx] 24: <%= csrf_meta_tags %> [xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx] 25: <%= csp_meta_tag %> [xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx] 26: [xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx] 27: <%= stylesheet_link_tag 'application', media: 'all' %> [xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx] 28: <%= javascript_pack_tag 'application' %> [xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx] 29: </head> [xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx] 30: [xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx] [xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx] app/views/layouts/application.html.erb:27
確かにscssがpublic以下にファイルが存在しないです。webpackerを使っている場合、scssはどうコンパイルすればいいのでしょうか?
あなたの回答
tips
プレビュー