blinking bear
2007-May-29 23:40 UTC
Removing a directory form SVN and thus, Capistrano Deploy
I have a public/user directory created by file_column. I have a capistrano task setup to symlink with: run "ln -nfs #{deploy_to}/shared/user #{release_path}/public/user" . The problem is since the user directory is in svn, the symlink doesn''t work because the directory already exists. Does anyone know how I can remove the public/user directory and contents from subversion and set it so that new files are not ignored? I know how to set an ignore propset like /log/*.* but can I actually tell it to ignore the whole directory itself? Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
MichaelLatta
2007-May-30 01:06 UTC
Re: Removing a directory form SVN and thus, Capistrano Deploy
To delete a directory in svn there is a rmdir command. It is not clear from your post if that is all you need, or if you are concerned about the target server as well. You could always add a rm command to your deploy script to empty the user directory, then use rmdir to remove the user directory itself. The actual user files of course should be in a separate directory tree from the one managed by capistrano (which you seem to be setting up). Michael On May 29, 4:40 pm, "blinking bear" <blinkingb...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have a public/user directory created by file_column. I have a capistrano > task setup to symlink with: run "ln -nfs #{deploy_to}/shared/user > #{release_path}/public/user" . The problem is since the user directory is > in svn, the symlink doesn''t work because the directory already exists. Does > anyone know how I can remove the public/user directory and contents from > subversion and set it so that new files are not ignored? I know how to set > an ignore propset like /log/*.* but can I actually tell it to ignore the > whole directory itself? > > Thanks!--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---