13 lines
410 B
Ruby
13 lines
410 B
Ruby
|
|
CloudfrontAssetHost.configure do |config|
|
||
|
|
if Rails.env.production?
|
||
|
|
config.bucket = "componentowl-assets"
|
||
|
|
config.cname = "http://assets%d.componentowl.com"
|
||
|
|
else
|
||
|
|
config.bucket = "componentowl-assets-dev"
|
||
|
|
config.cname = "http://assets%d.componentowl.dev.netcreates.com"
|
||
|
|
end
|
||
|
|
|
||
|
|
config.plain_prefix = "s"
|
||
|
|
|
||
|
|
#config.enabled = true if Rails.env.production? || Rails.env.preproduction?
|
||
|
|
end
|