Skip to content

Instantly share code, notes, and snippets.

@bashcoder
Created August 29, 2013 13:51
Show Gist options
  • Save bashcoder/24af831cafb59589efc3 to your computer and use it in GitHub Desktop.
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.
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