LoginSignup
1
0

More than 3 years have passed since last update.

heroku に push しようとするとprecompiling assets failed. が起きてしまう件

Posted at

環境

rails 5.2.3
Vs code

基本的な解決法

多くの場合 config/application.rb
内に config.assets.initialize_on_precompile=false
の記述を加えればこの問題は解決される。

これ以外の場合

RAILS_ENV=production bundle exec rake assets:precompile
を行いどのファイルが悪さをしているのかを調べる

自分の場合 application.css の
@import="bulma";
が悪さをしており これを削除したところdeployがうまくった
(うまくいったがbulmaを消したためビューが崩れてしまった。)

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0