Perhaps it’s my mistakes.
I’ve put
config.action_controller.asset_host = Proc.new { |source|
“http://localhost/static” if
source.starts_with?(‘/stylesheets/intra’)
in the application.rb file to serve static resources via the web server
apache.
In development mode I use webrick and the static resources are served
by http://localhost/static with no problems.
Then I’ve created the war file and deployed under tomcat in a
production server, in the same server I have the web server apache.
Now the static resources are not served, the application searches
under application/stylesheets/ and not under http://localhost/static/.
Have I missed something configuring asset host??