(Rails)herokuにpushしたらエラーになった
バージョン
- rails: 5.1.2
git push herokuしたら下記のエラーになった。(下記ログはエラーの該当箇所)
remote: Tasks: TOP => environment
remote: (See full trace by running task with --trace)
remote: !
remote: ! Precompiling assets failed.
remote: !
remote:
remote: ! Push rejected, failed to compile Ruby app
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to [application name].
Precompiling assets failed. がキーなんだと思うけど、ググってみて色々試したが解決できなかった。
多かった(未)解決方法は config/application.rb に
config.assets.initialize_on_precompile = false
というものだった。
結局解決したのは、bundle update -> bundle install して git push heroku でした。
これやってなかったのかなあ。