Browse Source

Error with CDN

development
Godwin 10 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| open(file, 'wb') do |f|
f << open(url).read f << open(url).read
end end
#FileUtils.cp url, file
end end
"maps/#{local_file_name}" "maps/#{local_file_name}"

12
config/assets_cdn.yml

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

Loading…
Cancel
Save