Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Configure asset_sync

  • Loading branch information...
commit 70b6048f45701d1e8eee4b46c1a3b61bba90b479 1 parent f4eb9d4
Gabe Kopley gkop authored
2  .gitignore
@@ -11,4 +11,4 @@ vendor/bundle/*
11 11 .DS_Store
12 12 coverage/
13 13 logfile
14   -
  14 +public/assets
2  Gemfile
@@ -46,6 +46,8 @@ gem 'contenteditable', :github => 'micmmakarov/contenteditable', :branch => 'mas
46 46 # sass mixin library
47 47 gem 'bourbon'
48 48
  49 +gem "asset_sync"
  50 +
49 51 group :assets do
50 52 #gem 'sass'
51 53 gem "sass-rails", '~> 3.2.3'
4 Gemfile.lock
@@ -47,6 +47,9 @@ GEM
47 47 multi_json (~> 1.0)
48 48 addressable (2.3.2)
49 49 arel (3.0.2)
  50 + asset_sync (0.5.0)
  51 + activemodel
  52 + fog
50 53 bcrypt-ruby (3.0.1)
51 54 bourbon (2.1.1)
52 55 sass (>= 3.1)
@@ -294,6 +297,7 @@ PLATFORMS
294 297
295 298 DEPENDENCIES
296 299 activesupport
  300 + asset_sync
297 301 bourbon
298 302 carrierwave
299 303 coffee-rails (~> 3.2.1)
4 config/environments/production.rb
@@ -35,7 +35,9 @@
35 35 # config.cache_store = :mem_cache_store
36 36
37 37 # Enable serving of images, stylesheets, and JavaScripts from an asset server
38   - # config.action_controller.asset_host = "http://assets.example.com"
  38 + if ENV['FOG_DIRECTORY']
  39 + config.action_controller.asset_host = "http://#{ENV['FOG_DIRECTORY']}.s3.amazonaws.com"
  40 + end
39 41
40 42 # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
41 43 # config.assets.precompile += %w( search.js )

0 comments on commit 70b6048

Please sign in to comment.
Something went wrong with that request. Please try again.