Heroku Rails 4 assets missing

If you’ve recently loaded a new Rails 4 application to Heroku and your assets are missing (css, js, etc) – you’re not alone. Add the following lines to your production.rb (or staging.rb) environment configuration files:


config.serve_static_assets = true
config.assets.compile = true

Then push the changes up to Heroku and you’re good to go.

Leave a Reply

Your email address will not be published. Required fields are marked *