Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
13
config/initializers/cloudfront_asset_host.rb
Normal file
13
config/initializers/cloudfront_asset_host.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user