diff options
author | Maxwell Salzberg <maxwell@joindiaspora.com> | 2012-01-25 23:22:45 +0400 |
---|---|---|
committer | Maxwell Salzberg <maxwell@joindiaspora.com> | 2012-01-25 23:22:45 +0400 |
commit | 939383ef3230b798984fc58eb54af60b398e55a0 (patch) | |
tree | d2119ae283575d13b7852d53dc6b8d231edd25cc /config/environments | |
parent | e1658f8d8b9f6d439340da77377974cecd2b48aa (diff) |
You can now use rake assets:precompile to upload all of your static assets to s3. This uses your prexisiting settings in AppConfig for s3. then, start your server with ASSET_HOST={cdn_hostname} remember to include https and no trailing slash
Diffstat (limited to 'config/environments')
-rw-r--r-- | config/environments/production.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index 6d51c531c..d52461370 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -39,7 +39,9 @@ Diaspora::Application.configure do # Enable serving of images, stylesheets, and javascripts from an asset server - # config.action_controller.asset_host = "http://assets.example.com" + if ENV['ASSET_HOST'] + config.action_controller.asset_host = ENV['ASSET_HOST'] + end # Disable delivery errors, bad email addresses will be ignored # config.action_mailer.raise_delivery_errors = false |