Created
February 28, 2013 04:23
-
-
Save naga41/5054166 to your computer and use it in GitHub Desktop.
asset_sync setting for AWS Cloudfront
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AssetSync.configure do |config| | |
config.fog_provider = 'AWS' | |
config.aws_access_key_id = ENV['AWS_ACCESS_KEY_ID'] | |
config.aws_secret_access_key = ENV['AWS_SECRET_ACCESS_KEY'] | |
config.fog_directory = ENV['FOG_DIRECTORY'] # S3 Bucket name | |
config.fog_region = ENV["AWS_DEFAULT_REGION"] || 'ap-northeast-1' | |
config.enabled = true | |
# config.aws_access_key_id = ENV['AWS_ACCESS_KEY_ID'] | |
# config.aws_secret_access_key = ENV['AWS_SECRET_ACCESS_KEY'] | |
# config.fog_directory = ENV['FOG_DIRECTORY'] | |
# Increase upload performance by configuring your region | |
# config.fog_region = 'eu-west-1' | |
# | |
# Don't delete files from the store | |
# config.existing_remote_files = "keep" | |
# | |
# Automatically replace files with their equivalent gzip compressed version | |
# config.gzip_compression = true | |
# | |
# Use the Rails generated 'manifest.yml' file to produce the list of files to | |
# upload instead of searching the assets directory. | |
# config.manifest = true | |
# | |
# Fail silently. Useful for environments such as Heroku | |
# config.fail_silently = true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment