Skip to content

Instantly share code, notes, and snippets.

@braidn
Created July 23, 2014 17:44
Show Gist options
  • Save braidn/afbad0c5cef325e37b08 to your computer and use it in GitHub Desktop.
Save braidn/afbad0c5cef325e37b08 to your computer and use it in GitHub Desktop.
if defined?(AssetSync)
AssetSync.configure do |config|
config.fog_provider = 'AWS'
config.fog_directory = ENV['FOG_BUCKET']
config.aws_access_key_id = ENV['AWS_ACCESS_KEY_ID']
config.aws_secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
# Delete files from the store
# config.existing_remote_files = 'keep'
#
# Increase upload performance by configuring your region
# config.fog_region = 'us-east-1'
#
# Automatically replace files with their equivalent gzip compressed version
config.gzip_compression = true
#
# Fail silently. Useful for environments such as Heroku
# config.fail_silently = true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment