So i made this ruby on rails (rails 4) application with a lot of assets, images and css stylesheets, and pushed it onto heroku at first and it did push successfully but when i tried to run it my images all had a question mark so i did search up on this and came up with a solution where I had to change the configuration/production file's "config.assets.compile" from false to true and deployed it again and it worked no problem.
Then for my second iteration of the project I added bootstrap support into many of my css files and tried to deploy to heroku and i run into this
remote: /tmp/build_d1ed400bad4dd39eea2ab72184854c0e/vendor/bundle/ruby/2.2.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
remote: Tasks: TOP => assets:precompile
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:
Ive researched a lot on this and some of the methods to fix this have been depreciated but this one particular solution where it says to precompile the assets locally using
RAILS_ENV=production bundle exec rake assets:precompile
did successfully run locally and it create files under the public directory but when I deploy it to heroku it still precompiles the assets. So my question is: Is there a way to let heroku know that there are assets precompiled and there is no need to run that command again? or is there a better way to solve this?