Link to home
Start Free TrialLog in
Avatar of depassion
depassionFlag for Philippines

asked on

no images after rails 3.1 deploy

so i have this image code below. Why is it not displaying in production? As you can see the image is on the server in the public/assets directory.
<div id="branding">
  <a href="/">
    <img alt="Gia_logo" src="/assets/gia_logo.png" />
  </a>
</div><!-- END #branding -->



rebel@server2:/var/www/apps/gia/current/public/assets$ ls -l
total 1984
-rw-r--r-- 1 rebel rebel  10950 Jul 21 17:35 gia_logo-8a0faa4baa330117c0646aa53e1a7131.png

Open in new window

Avatar of JESii
JESii
Flag of United States of America image

Rails 3.1 has a new "asset pipeline" wherein assets (such as images, css, javascript) are compressed and managed differently than in 3.0.  

Check out http://guides.rubyonrails.org/asset_pipeline.html to see what this means and how to manage your assets with the new approach.
Avatar of depassion

ASKER

yeah, i've read through it. i have this precompile task that is supposed to compile all assets into /public/assets

task :precompile_assets do
  run "cd #{release_path}; rm -rf public/assets/*"
  run "cd #{release_path}; RAILS_ENV=#{rails_env} bundle exec rake assets:precompile"
end

Open in new window

What does your production log say?
ASKER CERTIFIED SOLUTION
Avatar of Rameshwar Vyevhare
Rameshwar Vyevhare
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of James Murrell
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.