
CSS, JS doesn't display in Production environment
Reported by Fadhli | September 11th, 2008 @ 06:57 AM | in Sprint #2
CSS does not display on production environment. A workaround solution is to edit the production.rb settings so that the asset host is pointing to the cache css and javascript. e.g
Enable serving of images, stylesheets, and javascripts from an asset server
config.action_controller.asset_host ="http://localhost:3000/cache/localhost:3000"
But this in turn will make the admin page go naked.
Comments and changes to this ticket
-
Karthikeyan September 16th, 2008 @ 12:35 PM
- Tag changed from bug, css, production to bug, css, production
Also the default.js is not loaded in production environment when I tested in linux machine. Due to this, the javascript to send the Ajax requests is not working. I had this problem when I tried to update the cart info widget in adva-shop index page(which is cached).
I could make it work when I added,
<%= javascript_include_tag :defaults %>
in index.html.erb(in adva-shop).
-
Sven Fuchs September 22nd, 2008 @ 11:38 AM
- Tag changed from bug, css, production to bug, cache, css, production
- Milestone set to Release 0.1.0
-
Sven Fuchs September 22nd, 2008 @ 11:59 AM
- State changed from new to open
-
Josh H October 2nd, 2008 @ 01:36 AM
- Assigned user changed from Sven Fuchs to Josh H
-
Josh H October 2nd, 2008 @ 01:37 AM
- Milestone changed from Release 0.1.0 to Sprint #1
-
Sven Fuchs October 5th, 2008 @ 09:33 PM
- Milestone changed from Sprint #1 to Sprint #2
-
Josh H October 8th, 2008 @ 02:04 AM
- State changed from open to resolved
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<p>Cutting edge cms, blog, wiki, forum ... plattform.</p>
<p>Find the code on <a href="http://github.com/svenfuchs/adva_cms/tree/master">GitHub: adva cms</a></p>
<p>Part of the business application framework <a href="http://www.advabest.org/">adva best</a>.</p>