Permalink
Browse files

Configure asset_sync

  • Loading branch information...
1 parent f4eb9d4 commit 70b6048f45701d1e8eee4b46c1a3b61bba90b479 @gkop gkop committed Dec 27, 2012
Showing with 10 additions and 2 deletions.
  1. +1 −1 .gitignore
  2. +2 −0 Gemfile
  3. +4 −0 Gemfile.lock
  4. +3 −1 config/environments/production.rb
View
@@ -11,4 +11,4 @@ vendor/bundle/*
.DS_Store
coverage/
logfile
-
+public/assets
View
@@ -46,6 +46,8 @@ gem 'contenteditable', :github => 'micmmakarov/contenteditable', :branch => 'mas
# sass mixin library
gem 'bourbon'
+gem "asset_sync"
+
group :assets do
#gem 'sass'
gem "sass-rails", '~> 3.2.3'
View
@@ -47,6 +47,9 @@ GEM
multi_json (~> 1.0)
addressable (2.3.2)
arel (3.0.2)
+ asset_sync (0.5.0)
+ activemodel
+ fog
bcrypt-ruby (3.0.1)
bourbon (2.1.1)
sass (>= 3.1)
@@ -294,6 +297,7 @@ PLATFORMS
DEPENDENCIES
activesupport
+ asset_sync
bourbon
carrierwave
coffee-rails (~> 3.2.1)
@@ -35,7 +35,9 @@
# config.cache_store = :mem_cache_store
# Enable serving of images, stylesheets, and JavaScripts from an asset server
- # config.action_controller.asset_host = "http://assets.example.com"
+ if ENV['FOG_DIRECTORY']
+ config.action_controller.asset_host = "http://#{ENV['FOG_DIRECTORY']}.s3.amazonaws.com"
+ end
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
# config.assets.precompile += %w( search.js )

0 comments on commit 70b6048

Please sign in to comment.