Browse Source

Error with CDN

development
Godwin 11 years ago
parent
commit
1e7dbec86b
  1. 1
      app/helpers/application_helper.rb
  2. 12
      config/assets_cdn.yml

1
app/helpers/application_helper.rb

@ -450,7 +450,6 @@ module ApplicationHelper
open(file, 'wb') do |f|
f << open(url).read
end
#FileUtils.cp url, file
end
"maps/#{local_file_name}"

12
config/assets_cdn.yml

@ -1,9 +1,9 @@
development:
enabled: false
host: assets.myapp.dev
enabled: false
host: bikebike.org
production:
enabled: true
host: cdn.bikebike.org
protocol: https
fallback_protocol: http
enabled: true
host: cdn.bikebike.org
protocol: https
fallback_protocol: http

Loading…
Cancel
Save