From 3b961304914a51e6397199234e604b2984f76a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Thu, 8 Feb 2024 12:26:28 +0100 Subject: [PATCH] Upgrade web-console, fix it for Docker Was failing silently in Docker, because the warnings were turned off. --- Gemfile | 2 +- Gemfile.lock | 2 +- config/environments/development.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index beea23a..f8e375e 100644 --- a/Gemfile +++ b/Gemfile @@ -73,7 +73,7 @@ end group :development do # Access an interactive console on exception pages or by calling 'console' anywhere in the code. - gem 'web-console', '>= 3.3.0' + gem 'web-console', '~> 4.2' gem 'listen', '~> 3.2' gem 'letter_opener' gem 'letter_opener_web' diff --git a/Gemfile.lock b/Gemfile.lock index 6396dbd..ff21ad9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -538,7 +538,7 @@ DEPENDENCIES tzinfo-data view_component warden - web-console (>= 3.3.0) + web-console (~> 4.2) webmock BUNDLED WITH diff --git a/config/environments/development.rb b/config/environments/development.rb index 1f96c8f..e13b809 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -69,7 +69,7 @@ Rails.application.configure do config.action_mailer.default_url_options = { host: "localhost:3000", protocol: "http" } # Allow requests from any IP - config.web_console.whiny_requests = false + config.web_console.permissions = '0.0.0.0/0' if ENV["S3_ENABLED"] config.active_storage.service = :s3