I am not totally sure how to do this. Obviously I would want to create some sym links to the directories outside the project, so where do you guys find the best place to place the folders is (ex. /project_uploads/[project_name]) ? Or is there a better way, ie. moving items through capistrano? Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
This is what I have done. Not sure if it is the best way, but it works well. desc "Sync the uploads to the new current project" task :sync_uploads, :roles => [:app] do run "mkdir -p #{shared_path}/uploads" run "chown #{user}:#{user} #{shared_path}/uploads/" run "ln -nsf #{shared_path}/uploads #{current_path}/public/uploads" end -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> This is what I have done. Not sure if it is the best way, but it > works > well. > > desc "Sync the uploads to the new current project" > task :sync_uploads, :roles => [:app] do > run "mkdir -p #{shared_path}/uploads" > run "chown #{user}:#{user} #{shared_path}/uploads/" > run "ln -nsf #{shared_path}/uploads #{current_path}/public/ > uploads" > endI just make sure the uploads are saved in system/uploads/ (the system folder symbolic link is made my capistrano). That way I don''t have to worry about putting it in my deploy.rb file. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---