Heroku css not loading after assets: precompile

Geroku suddenly stopped working and gave me this error:

  could not connect to server: Connection refused
  Is the server running on host "127.0.0.1" and accepting
  Precompiling assets failed.

After some research, I ran this line:

 running RAILS_ENV=production bundle exec rake assets:precompile

This worked, but now when I click update for the hero, the new css is not loading. This line has never been shown before:

Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment

If possible, you can also explain why the assets: line precompilation resolved my original problem?

+4
source share
1 answer

Run the following commands:

 bundle exec rake tmp:clear

 bundle exec rake assets:clean RAILS_ENV=production

 bundle exec rake assets:precompile RAILS_ENV=production

Hope this helps!

+10
source

All Articles