Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Webroar does not load static assets of rails 3 application in production mode

#24

     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

Reported by Hokam Singh Chauhan · February 18th, 2011 @ 11:32 AM

State: invalid
Milestone: none
Assigned to: nobody

Activity

  1. Nikunj Limbaseeya
    Nikunj Limbaseeya
    • State changed from new to invalid

    The issue is faced when running Rails 3 application using prefix. It is application specific issue, WebROaR is not responsible for the same.

    February 22nd, 2011 @ 01:06 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.