Check for heroku url presence before working with it (#9866)
This commit is contained in:
parent
8ab7636c38
commit
244d632565
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ Rails.application.configure do
|
|||
enable_starttls_auto: true
|
||||
}
|
||||
|
||||
if ENV["HEROKU_APP_URL"] != config.app_domain
|
||||
if ENV["HEROKU_APP_URL"].present? && ENV["HEROKU_APP_URL"] != config.app_domain
|
||||
config.middleware.use Rack::HostRedirect,
|
||||
ENV["HEROKU_APP_URL"] => config.app_domain
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue