rumblelabs/asset_sync — Issue #37: Rails.application.config.assets.prefix returns "/assets"
Author: matthew342
Created: 2012-01-06 20:08:14+00:00
State: open

Seems to be a small issue with 0.2.4 and the Rails 3-2-stable branch. Rails.application.config.assets.prefix returns "/assets" if not set explicitly, which creates "/ /assets" on S3. Will check if explicitly setting config.assets.prefix to "assets" solves it.

Initializer looks like:

AssetSync.configure do |config|
config.fog_provider = 'AWS'
config.aws_access_key_id =
config.aws_secret_access_key =
config.fog_directory = 'assets-staging' #ENV['FOG_DIRECTORY']

# Increase upload performance by configuring your region
# config.fog_region = ''
#
# Don't delete files from the store
config.existing_remote_files = "delete"
#
# 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
end

[GitHub]https://github.com/rumblelabs/asset_sync/commit/a5fcbf2c1d951a1e537bb79957fb3506b0d58964