My production server won't load any Rails assets. When I run
RAILS_ENV=production rails s
I can see everything just fine. I even tried doing
RAILS_ENV=production bundle exec rake assets:precompile
Still no luck
Here is my production.rb
config.cache_classes = false
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.serve_static_files = false
config.assets.compress = false
config.assets.compile = true
config.assets.digest = false
config.eager_load = false
config.log_level = :debug
config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
ActiveSupport::XmlMini.backend='Nokogiri'
config.i18n.fallbacks = true
config.active_support.deprecation = :notify
Aucun commentaire:
Enregistrer un commentaire