Thanks, that was quite helpful for me too.

On 11/10/06, Jason Perry <[EMAIL PROTECTED]> wrote:

Absolutely...

I actually have some rake tasks I use across the board for my rails
apps... these work great for me, ymmv

namespace :svn do

   desc "Configure a new project for subversion"
   task :configure do
     FileUtils.mv 'config/database.yml', 'config/database.example.yml'
     system "svn propset svn:ignore 'database.yml' config"
     system "svn add . --force"
     system "svn remove log/* --force"
     system "svn propset svn:ignore '*' log"
     system "svn remove tmp/* --force"
     system "svn propset svn:ignore '*' tmp"
     FileUtils.cp 'config/database.example.yml', 'config/database.yml'
     FileUtils.chmod 0755, %w(log/ public/dispatch.rb public/
dispatch.cgi public/dispatch.fcgi)
     system "svn propset svn:executable ON public/dispatch.* script/
process/*"
   end

   desc "Add new files"
   task :add do
      system "svn status | grep '^\?' | sed -e 's/? *//' | sed -e
's/ /\ /g' | xargs svn add"
   end

   desc "Tell subversion to ignore coverage folders"
   task :coverage do
     FileUtils.remove_dir 'coverage', true
     system "svn remove coverage --force"
     system "svn propset svn:ignore 'coverage' ."
   end

end


On Nov 9, 2006, at 5:52 PM, s.ross wrote:

>
> I'm deploying all my apps with Capistrano, and have been lazy about
> managing the svn repository. Basically, I put plugins, edge rails,
> etc.
> in my repository so Capistrano would find them ok.
>
> Now, I have reconfigured the repository so each plugin has
> svn:externals property set and vendor/rails has svn:ignore set.
>
> This seems, at first naive blush, to be a reasonable scenario, but
> doing:
>
> svn up
> cap deploy
>
> does not seem to put recent versions of the plugins on my server
> and it
> doesn't deploy the version of edge rails I'm using. Perhaps I should
> have used svn:externals on vendor/rails as well.
>
> Any suggestions how best to handle this?
>
> Thanks
>
>
> >



--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to