I just did this last night. What I did to accomplish this was to tag the version in my git repository, after finding the appropriate revision like so:
git tab release3 2dd...28e4 Then I made a branch with the same name as the tag like so: git co -b release3 release3 Then I copied in my current deploy.rb (although not strictly necessary, if you run your deployment from the HEAD of master), but it's nice to be in the branch when you deploy, because you can run your local server to see that you are deploying what you think you are. Then I updated deploy.rb to specify the 'release3' branch like so: set :scm, :git ... set :branch, "release3" Committed the changes to the repository, and then pushed the repository (with all branches to the origin) with: git push --all Then just cap deploy. j On Aug 10, 2009, at 9:05 AM, Ionut G. Stan wrote: > > Hi guys, > > I was wondering if there's any built-in support in Capistrano for > deploying from > SCM tags (Git in my particular case). I've googled the issue and it > seems there's > no such thing. I have only found some third party plugins or other > recipes for this. > > So, if there's nothing built-in, could you recommend me something > based > on your > experience? > > > Thanks, > > -- > Ionut G. Stan > I'm under construction | http://igstan.blogspot.com/ > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Capistrano" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.co.uk/group/capistrano?hl=en -~----------~----~----~----~------~----~------~--~---
