update initializer

This commit is contained in:
Maxwell Salzberg 2012-04-02 18:39:35 -07:00
parent b33ee8c688
commit 4ba3ec0b42

View file

@ -1,23 +1,25 @@
require File.join(File.dirname(__FILE__), '..', '..', 'app', 'models', 'app_config') if defined?(AssetSync)
AssetSync.configure do |config| require File.join(File.dirname(__FILE__), '..', '..', 'app', 'models', 'app_config')
config.fog_provider = 'AWS' AssetSync.configure do |config|
config.fog_directory = AppConfig[:s3_bucket] config.fog_provider = 'AWS'
config.aws_access_key_id = AppConfig[:s3_key] config.fog_directory = AppConfig[:s3_bucket]
config.aws_secret_access_key = AppConfig[:s3_secret] config.aws_access_key_id = AppConfig[:s3_key]
config.aws_secret_access_key = AppConfig[:s3_secret]
# Don't delete files from the store # Don't delete files from the store
# config.existing_remote_files = "keep" # config.existing_remote_files = "keep"
# #
# Increase upload performance by configuring your region # Increase upload performance by configuring your region
# config.fog_region = 'eu-west-1' # config.fog_region = 'eu-west-1'
# #
# Automatically replace files with their equivalent gzip compressed version # Automatically replace files with their equivalent gzip compressed version
# config.gzip_compression = true # config.gzip_compression = true
# #
# Use the Rails generated 'manifest.yml' file to produce the list of files to # Use the Rails generated 'manifest.yml' file to produce the list of files to
# upload instead of searching the assets directory. # upload instead of searching the assets directory.
# config.manifest = true # config.manifest = true
# #
# Fail silently. Useful for environments such as Heroku # Fail silently. Useful for environments such as Heroku
# config.fail_silently = true # config.fail_silently = true
end
end end