Skip to content

Commit

Permalink
Use ENV APP_DOMAIN instead of specific host
Browse files Browse the repository at this point in the history
  • Loading branch information
vnntsu committed Jan 19, 2024
1 parent cfd7689 commit f28f9a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "active_support/core_ext/integer/time"

Rails.application.configure do
config.hosts = ['survey-api-staging.nimblehq.co', 'https://survey-api.nimblehq.co']
config.hosts = [ENV.fetch('MAILER_DEFAULT_HOST')]
# Settings specified here will take precedence over those in config/application.rb.

# In the development environment your application's code is reloaded any time
Expand Down
2 changes: 2 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require "active_support/core_ext/integer/time"

Rails.application.configure do
config.hosts = [ENV.fetch('MAILER_DEFAULT_HOST')]

# Settings specified here will take precedence over those in config/application.rb.

# Code is not reloaded between requests.
Expand Down

0 comments on commit f28f9a2

Please sign in to comment.