Skip to content

Instantly share code, notes, and snippets.

@benschwarz
Last active December 11, 2015 23:49
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 benschwarz/4679706 to your computer and use it in GitHub Desktop.
Save benschwarz/4679706 to your computer and use it in GitHub Desktop.
Deploying a static site to S3
#!/usr/bin/env bash
assets='stylesheets javascripts images fonts'
echo "Deploying: $assets"
s3cmd sync --force --reduced-redundancy --acl-public $assets s3://a.germanforblack.com/
@benschwarz
Copy link
Author

--reduced-redundancy option added, thanks @compactcode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment