Adding preview environment

This commit is contained in:
Godwin
2015-05-02 17:41:41 -07:00
parent 98b3013e3e
commit d151e37e2e
5 changed files with 10 additions and 5 deletions
+6
View File
@@ -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
+2
View File
@@ -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