I am running a rails server in the production environment, and I precompiled my assets, but for some reason the requests are going to the /assets directory instead of /public.
I have the default production.rb file. What could be causing this?
# config/environments/production.rb
config.cache_classes = true
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.serve_static_assets = false
config.assets.compress = true
config.assets.compile = false
config.assets.digest = true
config.force_ssl = true
config.i18n.fallbacks = true
config.active_support.deprecation = :notify
You can also change:
and then your assets will be served from /public/assets without having to use Apache or Nginx.
For development, just delete the /public/assets directory and then they will be automatically compiled and served from /assets.