1

I've tried everything in other questions: Rails 4: assets not loading in production

What can I do?

Community
  • 1
  • 1
alejorivera
  • 935
  • 1
  • 10
  • 25

1 Answers1

1

I've figured it out!

In application.rb:

config.serve_static_assets = true
config.assets.enabled = true
config.assets.paths << Rails.root.join("app", "assets", "fonts")

In production.rb:

config.serve_static_assets = true

Then in the terminal, run:

RAILS_ENV=production bundle exec rake assets:precompile
alejorivera
  • 935
  • 1
  • 10
  • 25