Created
November 20, 2013 01:23
-
-
Save yurikoval/7555896 to your computer and use it in GitHub Desktop.
asset_sync initializer config to work with non-stupid-digest-assets gem for non-digest asset compilation and upload to S3.
This file contains hidden or 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
if defined?(AssetSync) | |
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'] | |
config.manifest = false | |
config.existing_remote_files = 'ignore' | |
# 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