Remove CDN.port. BREAKING CHANGE
This commit is contained in:
parent
2189fba647
commit
b6938eac1c
5 changed files with 3 additions and 10 deletions
|
@ -28,8 +28,7 @@ mailer:
|
||||||
email: "support@commitchange.com"
|
email: "support@commitchange.com"
|
||||||
|
|
||||||
cdn:
|
cdn:
|
||||||
url: "http://localhost"
|
url: "http://localhost:5000"
|
||||||
port: 5000
|
|
||||||
|
|
||||||
payment_provider:
|
payment_provider:
|
||||||
stripe_connect: true
|
stripe_connect: true
|
||||||
|
|
|
@ -101,11 +101,8 @@ Config.schema do
|
||||||
|
|
||||||
required(:cdn).schema do
|
required(:cdn).schema do
|
||||||
# URL for your CDN for assets. Usually this is just your url
|
# URL for your CDN for assets. Usually this is just your url
|
||||||
# Default is http://localhost
|
# Default is http://localhost:8080
|
||||||
required(:url).filled(:str?)
|
required(:url).filled(:str?)
|
||||||
|
|
||||||
# the port for your cdn. Default is 8080
|
|
||||||
optional(:port).filled(:int?)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
required(:payment_provider).schema do
|
required(:payment_provider).schema do
|
||||||
|
|
|
@ -45,7 +45,6 @@ Commitchange::Application.configure do
|
||||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
||||||
|
|
||||||
cdn_url= URI(Settings.cdn.url)
|
cdn_url= URI(Settings.cdn.url)
|
||||||
cdn_url.port = Settings.cdn.port if Settings.cdn.port
|
|
||||||
cdn_url = cdn_url.to_s
|
cdn_url = cdn_url.to_s
|
||||||
config.action_controller.asset_host = cdn_url
|
config.action_controller.asset_host = cdn_url
|
||||||
config.action_mailer.asset_host = cdn_url
|
config.action_mailer.asset_host = cdn_url
|
||||||
|
|
|
@ -30,8 +30,7 @@ mailer:
|
||||||
host: "http://localhost"
|
host: "http://localhost"
|
||||||
|
|
||||||
cdn:
|
cdn:
|
||||||
url: "http://localhost"
|
url: "http://localhost:5000"
|
||||||
port: 5000
|
|
||||||
|
|
||||||
payment_provider:
|
payment_provider:
|
||||||
stripe_connect: false
|
stripe_connect: false
|
||||||
|
|
|
@ -14,7 +14,6 @@ namespace :settings do
|
||||||
task :generate_json => :environment do
|
task :generate_json => :environment do
|
||||||
|
|
||||||
cdn_url= URI(Settings.cdn.url)
|
cdn_url= URI(Settings.cdn.url)
|
||||||
cdn_url.port = Settings.cdn.port if Settings.cdn.port
|
|
||||||
cdn_url = cdn_url.to_s
|
cdn_url = cdn_url.to_s
|
||||||
if (Settings.button_config&.url)
|
if (Settings.button_config&.url)
|
||||||
cdn_url= URI(Settings.button_config.url).to_s
|
cdn_url= URI(Settings.button_config.url).to_s
|
||||||
|
|
Loading…
Reference in a new issue