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 6257190
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
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('APP_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 = ['survey-api-staging.nimblehq.co', 'survey-api.nimblehq.co']

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

# Code is not reloaded between requests.
Expand Down

0 comments on commit 6257190

Please sign in to comment.