Merge pull request #5002 from consul/custom_environments

Allow adding per-environment custom settings
This commit is contained in:
Javi Martín
2022-10-05 18:00:46 +02:00
committed by GitHub
10 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
Rails.application.configure do
# Overwrite settings for the development environment or add your own
# custom settings for this environment.
end

View File

@@ -0,0 +1,4 @@
Rails.application.configure do
# Overwrite settings for the preproduction environment or add your own
# custom settings for this environment.
end

View File

@@ -0,0 +1,4 @@
Rails.application.configure do
# Overwrite settings for the production environment or add your own
# custom settings for this environment.
end

View File

@@ -0,0 +1,7 @@
Rails.application.configure do
# Overwrite settings for the staging environment or add your own
# custom settings for this environment. Note these changes will
# also affect the preproduction environment, so edit the
# `config/environments/custom/preproduction.rb` file if you don't
# want these changes to be applied there as well.
end

View File

@@ -0,0 +1,4 @@
Rails.application.configure do
# Overwrite settings for the test environment or add your own
# custom settings for this environment.
end

View File

@@ -71,3 +71,5 @@ Rails.application.configure do
# routes, locales, etc. This feature depends on the listen gem.
# config.file_watcher = ActiveSupport::EventedFileUpdateChecker
end
require Rails.root.join("config", "environments", "custom", "development")

View File

@@ -1 +1,2 @@
require Rails.root.join("config", "environments", "staging")
require Rails.root.join("config", "environments", "custom", "preproduction")

View File

@@ -122,3 +122,5 @@ Rails.application.configure do
# config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
# config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
end
require Rails.root.join("config", "environments", "custom", "production")

View File

@@ -121,3 +121,5 @@ Rails.application.configure do
# config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
# config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
end
require Rails.root.join("config", "environments", "custom", "staging")

View File

@@ -61,3 +61,5 @@ Rails.application.configure do
end
end
end
require Rails.root.join("config", "environments", "custom", "test")