Adding preview environment
This commit is contained in:
@@ -2,6 +2,12 @@ development:
|
||||
enabled: false
|
||||
host: bikebike.org
|
||||
|
||||
preview:
|
||||
enabled: true
|
||||
host: preview-cdn.bikebike.org
|
||||
protocol: https
|
||||
fallback_protocol: http
|
||||
|
||||
production:
|
||||
enabled: true
|
||||
host: cdn.bikebike.org
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
CarrierWave.configure do |config|
|
||||
if Rails.env == "production"
|
||||
config.asset_host = "https://cdn.bikebike.org"
|
||||
elsif Rails.env == "preview"
|
||||
config.asset_host = "https://preview-cdn.bikebike.org"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user