My minimal app runs locally and I have no bundle errors. When I push to heroku, however, the build fails during assets:precompile step:
...
Bundle completed (3.24s)
Cleaning up the bundler cache.
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompole
rake aborted!
LoadError: cannot load such file -- uglifier
(in /tmp/build_.../app/assets/javascripts/application.js)
Notes:
1. I am not using the uglifier gem locally
2. I do not have a file app/assets/javascripts/application.js
I have tried these Gemfile solutions:
A) adding the uglifier gem
B) adding uglifier to the assets group
C) removing uglifier completely from Gemfile and rake uninstall all versions
What's next?
Comment this line in config/environments/production.rb
config.assets.js_compressor = :uglifier