Adds config.hosts option in development environment (#8295)

This commit is contained in:
Fernando Valverde 2020-06-08 09:24:40 -06:00 committed by GitHub
parent dd1cfd33e0
commit 97fb2f9973
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,6 +74,7 @@ Rails.application.configure do
config.action_mailer.perform_caching = false
config.hosts << ENV["APP_DOMAIN"] unless ENV["APP_DOMAIN"].nil?
config.app_domain = "localhost:3000"
config.action_mailer.default_url_options = { host: "localhost:3000" }