#24 ✓invalid
Hokam Singh Chauhan

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

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

     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

Comments and changes to this ticket

  • Nikunj Limbaseeya

    Nikunj Limbaseeya February 22nd, 2011 @ 01:06 PM

    • 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.

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

<strong>Source Code Location</strong>
Repository is at <a href="http://github.com/webroar/webroar" target="_blank">http://github.com/webroar/webroar</a>
<p>
Check out the development master:
git clone git://github.com/webroar/webroar.git

<p>
<strong>Creating a bug report</strong>

When creating a bug report, be sure to include as much relevant information as possible.
<p>
Security vulnerabilities should be reported via an email to security@webroar.in, do not use lighthouse for reporting security vulnerabilities. All content in lighthouse is publicly available as soon as it is posted.

Shared Ticket Bins

People watching this ticket

Pages