Here I received a solution to my problem that every time when I deploy my Spree Commerce app with Capistrano my images are removed (they are still there, but the folder names are wrong) and I have to add them again via admin.
Both on this Google group and in the answer to the question it is said that symlinking is solution.
You need to make sure that your RAILS_ROOT/public/spree directory is being symlinked in from the Capistrano shared directory and not recreated every time you deploy. If this symlink isn't happening, your images will be lost on every deploy.
I've tried a few things but I do not manage to symlink my images.
On the server they are in the folder /public/spree/products. What I tried is this:
namespace :deploy do
task :start do ; end
task :stop do ; end
task :symlink_shared do
run "ln -nfs #{shared_path}/shared/spree/ #{release_path}/public/spree/""
end
end
but this does not work. I do not know which shared path I have to enter. I hope someone can help me out or provide a link with explanation.