Skip to content

Instantly share code, notes, and snippets.

@techmexdev
Last active February 11, 2017 20:21
Show Gist options
  • Save techmexdev/9158edae9204cc3921935a1a033428d3 to your computer and use it in GitHub Desktop.
Save techmexdev/9158edae9204cc3921935a1a033428d3 to your computer and use it in GitHub Desktop.
//config.rb
activate :s3_sync do |s3_sync|
s3_sync.bucket = 'my.bucket.com' # The name of the S3 bucket you are targeting. This is globally unique.
s3_sync.region = 'us-west-1' # The AWS region for your bucket.
s3_sync.aws_access_key_id = 'AWS KEY ID'
s3_sync.aws_secret_access_key = 'AWS SECRET KEY'
s3_sync.delete = false # We delete stray files by default.
s3_sync.after_build = false # We do not chain after the build step by default.
s3_sync.prefer_gzip = true
s3_sync.path_style = true
s3_sync.reduced_redundancy_storage = false
s3_sync.acl = 'public-read'
s3_sync.encryption = false
s3_sync.prefix = ''
s3_sync.version_bucket = false
s3_sync.index_document = 'index.html'
s3_sync.error_document = '404.html'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment