From 1eca4228d95fd79c541436a2783be27405d34a6d Mon Sep 17 00:00:00 2001 From: Thomas Burkhalter Date: Fri, 19 Jan 2024 15:30:58 +0100 Subject: [PATCH] Add possibilities to add development hosts --- config/environments/development.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index 003bc96e..c85e38d8 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -22,6 +22,13 @@ # Enable server timing config.server_timing = true + config.hosts = [ + "127.0.0.1", + "localhost", + ".local", + ENV["RAILS_HOSTS"] + ] + # Enable/disable caching. By default caching is disabled. # Run rails dev:cache to toggle caching.