Skip to content

Instantly share code, notes, and snippets.

@krschultz
Created March 6, 2014 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krschultz/9395676 to your computer and use it in GitHub Desktop.
Save krschultz/9395676 to your computer and use it in GitHub Desktop.
desc "Deploy website via AWS command lien tools with CloudFront cache invalidation"
task :s3 do
puts "## Deploying website via AWS cli tools"
ok_failed system("aws s3 sync --acl public-read --storage-class 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