mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 23:42:04 +02:00
Config for test and development docker containers
This commit is contained in:
parent
b02df5ef02
commit
359e444839
7 changed files with 113 additions and 6 deletions
|
@ -16,6 +16,14 @@ require 'rails/all'
|
|||
Bundler.require(*Rails.groups)
|
||||
|
||||
module DomainNameRegistry
|
||||
|
||||
# Add "db" to the list hosts on which you can run `rake db:setup:all`
|
||||
# Only allow that in test and development.
|
||||
if ['development', 'test'].include?(Rails.env)
|
||||
ActiveRecord::Tasks::DatabaseTasks::LOCAL_HOSTS << "db"
|
||||
end
|
||||
|
||||
module Registry
|
||||
class Application < Rails::Application
|
||||
# Settings in config/environments/* take precedence over those specified here.
|
||||
# Application configuration should go into files in config/initializers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue