I'm running my staging server locally using:
RAILS_ENV=staging rails console -p 1337
I have precompiled assets, everything is working fine except I cannot find out how to serve those assets. I have this in my staging.rb:
config.serve_static_assets = false
In my apache vhost, if I listen on 80, I can access my assets:
http://domain.local/assets/application.css
But, if I listen on 1337, the same port as my rails server, then rails spits out a 404. My confusion is, I have already told rails not to serve_static_assets, and so why would it try to serve them?
http://domain.local:1337/assets/application.css
I must be missing something. The site displays fine, just returns 404 on all assets:
ActionController::RoutingError (No route matches [GET] "/assets/application-791b26264f9bbe462a28d08cf9a79582.css"):