From 442b405927b22b2fc111e2e44bd6164ce1bc38a8 Mon Sep 17 00:00:00 2001 From: Ralf Teusner Date: Thu, 24 Nov 2016 11:58:32 +0100 Subject: [PATCH] added support for better_errors in virtual machines. If you want to use it, set the environment variable "TRUSTED_IP", for example: export TRUSTED_IP=192.168.59.3 --- config/environments/development.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index a91cebc2..10cc7bc8 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -33,6 +33,8 @@ Rails.application.configure do # Raise errors for missing translations. config.action_view.raise_on_missing_translations = true + BetterErrors::Middleware.allow_ip! ENV['TRUSTED_IP'] if ENV['TRUSTED_IP'] + # Delete middleware in order to allow concurrent requests. config.middleware.delete(Rack::Lock) end