Skip to content

Instantly share code, notes, and snippets.

@yurikoval
Created November 20, 2013 01:23
Show Gist options
  • Save yurikoval/7555896 to your computer and use it in GitHub Desktop.
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.
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