I am having an issue regarding
deployment of my rails 3 application in production mode. In Webroar
when i am deploying my rails 3 application with development
environment, that time application is running fine and properly
loading static assets (images , javascripts and stylesheets files),
but when i am changing the environment to the production then
webroar is not loading the static assets.
I am getting an 404 not found error
when i am clicking on stylesheet , javascript or image tag of the
souce code of rendered page.
I am getting following log trace in my access.log file
127.0.0.1 - - [18/Feb/2011:11:12:31 +0530] "GET
/stylesheets/jcheck.css?1293442354 HTTP/1.1" 404 280 "http://localhost:3000/jscript/users"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13)
Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13"
127.0.0.1 - - [18/Feb/2011:11:12:31 +0530] "GET
/stylesheets/scaffold.css?1297852149 HTTP/1.1" 404 280 "http://localhost:3000/jscript/users"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13)
Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13"
127.0.0.1 - - [18/Feb/2011:11:12:31 +0530] "GET
/javascripts/prototype.js?1293193140 HTTP/1.1" 404 280 "http://localhost:3000/jscript/users"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13)
Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13"
127.0.0.1 - - [18/Feb/2011:11:12:31 +0530] "GET
/javascripts/effects.js?1293193140 HTTP/1.1" 404 280 "http://localhost:3000/jscript/users"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13)
Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13"
127.0.0.1 - - [18/Feb/2011:11:12:31 +0530] "GET
/javascripts/dragdrop.js?1293193140 HTTP/1.1" 404 280 "http://localhost:3000/jscript/users"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13)
Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13"
127.0.0.1 - - [18/Feb/2011:11:12:31 +0530] "GET
/javascripts/controls.js?1293193140 HTTP/1.1" 404 280 "http://localhost:3000/jscript/users"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13)
Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13"
127.0.0.1 - - [18/Feb/2011:11:12:31 +0530] "GET
/javascripts/rails.js?1293193140 HTTP/1.1" 404 280 "http://localhost:3000/jscript/users"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13)
Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13"
Thanks,
Hokam