From 457c0351d92675087d3a98e4a5db801ae2aea578 Mon Sep 17 00:00:00 2001 From: Su Nguyen T Date: Fri, 19 Jan 2024 11:30:09 +0700 Subject: [PATCH] Use ENV APP_DOMAIN instead of specific host --- config/environments/development.rb | 2 +- config/environments/production.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index df0e399e..d4da65ae 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -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('APP_DOMAIN')] # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded any time diff --git a/config/environments/production.rb b/config/environments/production.rb index a292c4b0..3bc964f9 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,6 +1,8 @@ require "active_support/core_ext/integer/time" Rails.application.configure do + config.hosts = [ENV.fetch('APP_DOMAIN')] + # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests.