-
-
Save bashcoder/24af831cafb59589efc3 to your computer and use it in GitHub Desktop.
Excerpt from the Rakefile in my Octopress install, showing how I use s3cmd for deployment to S3.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Deploy website via s3cmd" | |
task :s3 do | |
puts "## Deploying website via s3cmd" | |
s3_bucket = '<your bucket here>' | |
ok_failed system("s3cmd sync --acl-public --reduced-redundancy public/* s3://#{s3_bucket}/") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment