Project

git-2-s3

0.0
No commit activity in last 3 years
No release in over 3 years
A deployment strategy that takes a github repository and pushes the files into an S3 bucket using capistrano
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2.1.0
>= 0
 Project Readme
= Introduction

This gem is based off of Capistrano_s3 gem found at Github. This gem pushes each file in your repository to s3 whereas the Capistrano_s3 gem compresses your repository and pushes to s3 as a single compressed file.

Git-2-S3 is a capistrano deployment strategy that will:

    * git clone locally
    * push the files to S3
    * each server pulls the files from S3 

This allows one to push a github repository to Amazon's S3 Data storage.

= Installation
  gem install git-2-s3

To use it, specify properties in <tt>config/deploy.rb</tt>:
  set :deploy_via, :s3_bucket
  set :deploy_s3_bucket, 'com.example.releases' # The name of the S3 bucket that should get releases
  s3_config = YAML::load(ERB.new(IO.read("secret/s3.yml")).result) # Follow this pattern and don't check in your secrets
  # s3_config = { 'AWS_ACCOUNT_NUMBER' => '1234-5678-9012', 'AWS_ACCESS_KEY_ID' => 'ABCDEFGHIJKLMNOPQRST', 'AWS_SECRET_ACCESS_KEY' => 'abcdefghijklmnopqrstuvwxyz01234567890ABC' }
  set :s3_config, s3_config

Now regular Capistrano deployment tasks will go to S3

= About

Author:: Kurt Didenhover - kdidenhover at [nospam] gmail dt com
License:: Distributed under MIT License
Copyright:: 2010 Kurt Didenhover