depassion
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
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
What does your production log say?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Check out http://guides.rubyonrails.org/asset_pipeline.html to see what this means and how to manage your assets with the new approach.