Rails 4 images not loading on heroku - Stack Overflow: "I need to combine several solutions to make it worked, here are what I did:
on Gemfile:
gem 'rails_12factor', group: :production
on Heroku console:
heroku labs:enable user-env-compile -a yourapp
on production.rb
config.serve_static_assets = true
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
config.assets.compile = true
and I didn't need to precompile the assets locally."
'via Blog this'
No comments:
Post a Comment