Skip to content

Instantly share code, notes, and snippets.

@rwboyer
Created November 2, 2013 10:34
Show Gist options
  • Select an option

  • Save rwboyer/7277587 to your computer and use it in GitHub Desktop.

Select an option

Save rwboyer/7277587 to your computer and use it in GitHub Desktop.
config.rb
# def some_helper
# "Helping"
# end
# end
set :js_dir, 'js'
set :css_dir, 'css'
foundation_path = Gem::Specification.find_by_name('zurb-foundation').gem_dir
sprockets.append_path (foundation_path + '/js/vendor/')
sprockets.append_path (foundation_path + '/js/foundation/')
# print foundation_path + '/js/vendor/' + "\n"
#set :js_assets_paths, [File.join(foundation_path, 'js')]
#set :sass_assets_paths, [File.join(foundation_path, '_scss')]
activate :s3_sync do |s3_sync|
s3_sync.bucket = 'typkit.rwboyer.com' # The name of the S3 bucket you are targetting. This is globally unique.
s3_sync.region = 'us-east-1' # The AWS region for your bucket.
s3_sync.aws_access_key_id = ENV['AMAZON_ACCESS_KEY_ID'] #'AWS KEY ID'
s3_sync.aws_secret_access_key = ENV['AMAZON_SECRET_ACCESS_KEY'] #'AWS SECRET KEY'
s3_sync.delete = true # We delete stray files by default.
s3_sync.after_build = false # We chain after the build step by default. This may not be your desired behavior...
s3_sync.prefer_gzip = false
s3_sync.path_style = true
s3_sync.reduced_redundancy_storage = true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment