Browse Source

CDN fix

development
Godwin 11 years ago
parent
commit
56778ae63c
  1. 4
      config/assets_cdn.yml
  2. 2
      config/environments/production.rb

4
config/assets_cdn.yml

@ -5,5 +5,5 @@ development:
production: production:
enabled: true enabled: true
host: cdn.bikebike.org host: cdn.bikebike.org
protocol: http protocol: https
fallback_protocol: https fallback_protocol: http

2
config/environments/production.rb

@ -66,7 +66,7 @@ BikeBike::Application.configure do
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
# config.assets.precompile += %w( search.js ) # config.assets.precompile += %w( search.js )
config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif) config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)
config.action_controller.asset_host = "http://cdn.bikebike.org" config.action_controller.asset_host = "https://cdn.bikebike.org"
# Ignore bad email addresses and do not raise email delivery errors. # Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors.

Loading…
Cancel
Save