The s3_bucket.rb file can be found in http://groups.google.com/group/capistrano/files. I keep it in a lib/capistrano/recipes/deploy/strategy directory (where lib is in the same directory as my Capfile).
It does depend on the s3cmd - perhaps delivered by the s3sync gem described at http://exdolo.com/projects/s3sync-gem - being installed on the servers. -Bill On Thu, Feb 21, 2008 at 9:23 PM, Paul Dowman <[EMAIL PROTECTED]> wrote: > I think this is a great idea, I've been meaning to do this myself as part > of EC2 on Rails ( http://ec2onrails.rubyforge.org/ ), but something > general is better (and less work for me! :-). Where can we find it? > > How does it cause the target server to download and unpack the tgz file? I > assume it depends on some S3 command existing on the server, and triggers > that via a capistrano "run" statement? > > Paul > > > On Wed, Feb 20, 2008 at 7:08 PM, Bill Kirtley <[EMAIL PROTECTED]> > wrote: > > > > > Hello- > > > > I've built a deployment strategy to plug into capistrano so that > > deployments go through an S3 bucket. > > > > Properties: > > - Expects a deploy_bucket it can read from and write to > > - Uses configuration[:s3_config] to find creds > > - Names releases {application}_{revision}.tgz > > - Looks in the bucket for a file with that name - skip to actual > > deployment if found > > - Checks out the specified revision, bundles it up, and pushes to the > > S3 bucket > > > > It's useful for situations (like mine) where you: > > - Deploy from a spot close to your svn > > - Don't want to expose the svn repository to the managed servers (and > > the whole web) > > - Want later servers to get quick access to the code package > > - Deploy from behind a cable modem (slow) to EC2 instances (with fast > > access to S3) > > > > I put the file (s3_bucket.rb just uploaded to the group) in my cap > > project directory, to in effect monkey-patch a new deploy strategy for > > capistrano without touching the capistrano gem. (Full path lib/ > > capistrano/recipes/deploy/strategy/s3_bucket.rb, with the lib > > directory in the same directory as Capfile and config) > > > > Feedback is much appreciated ... I'd love to see this folded into a > > future version of capistrano. > > > > -Bill Kirtley > > > > > > > > > -- > http://pauldowman.com > > > --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
