Show Better Errors in Rails + Docker environment

$ docker-compose up

Even if I type the command, the normal error screen is displayed.

Solution

config/enviroments/development.rb


if Rails.env.development?
  BetterErrors::Middleware.allow_ip! "0.0.0.0/0"
end

Add this code. BetterErrors seems to be used only in development! So set the condition with env!

that's all. .. ..

Recommended Posts

Show Better Errors in Rails + Docker environment
Rails Docker environment construction
(Basic authentication) environment variables in rails and Docker
Migration error after Activerecord association in Rails5 + Docker environment (2)
Migration error after Activerecord association in Rails5 + Docker environment
[Docker] Rails 5.2 environment construction with docker
SSL in the local environment of Docker / Rails / puma
Rails + MySQL environment construction with Docker
Build environment with vue.js + rails + docker
Build Rails environment with Docker Compose
Install laravel/Dusk in docker environment (laravel6)
[Environment construction with Docker] Rails 6 & MySQL 8
[Rails 6] Customize Bootstrap in Rails + Bootstrap 5.0.0-alpha environment
Check MySQL logs in Docker environment
Alert slack with alert manager in Docker environment
[Docker] Use environment variables in Nginx conf
Rails environment construction with Docker (personal apocalypse)
Building Rails 6 and PostgreSQL environment with Docker
Create Rails 6 + MySQL environment with Docker compose
Migrate existing Rails 6 apps to Docker environment
Use docker in proxy environment on ubuntu 20.04.1
Support for gdb errors in Docker containers
[Docker] Development environment construction Rails6 / Ruby2.7 / MySQL8
Commands that helped resolve errors in Docker
[Rails] Reset the database in the production environment
Dealing with composer installation errors in Docker
How to build Rails 6 environment with Docker
[Environment construction] Rails + MySQL + Docker (Beginners can also use it in 30 minutes!)
Launching the production environment with docker + rails (ver5.2) and errors that occurred
[Rails 5] Countermeasures for git commit failure from another branch in Docker environment
How to apply Rails environment variables to Docker container (aws :: Sigv4 :: Errors solution)
Build a development environment for Docker + Rails6 + Postgresql
Self-hosting with Docker of AuteMuteUs in Windows environment
Just install Laravel8 on docker in PHP8 environment
[Rails] Run LINEBot in local environment using ngrok
rails tutorial About account activation in production environment
Rails6 [API mode] + MySQL5.7 environment construction with Docker
Rails5.1 + puma SSL connection in local production environment
[Rails] Show multi-level categories in the breadcrumb trail
Group_by in Rails
[Rails] Show avatars in posts using Active Storage
500 Internal Server Error occurs in Rails production environment
Docker in LXD
Rails Docker ~ Part 1 ~
Rails Docker ~ Part 2 ~
Support out of support in docker environment using centos6
Docker × Laravel HTTPS (SSL) communication in local environment
[Rails] How to build an environment with Docker
Docker environment construction
Introduce dotenv to Docker + Rails to manage environment variables
[Rails] ActiveRecord :: HasManyThrough Order Error in Users # show
[Rails] How to use PostgreSQL in Vagrant environment
How to install Docker in the local environment of an existing Rails application [Rails 6 / MySQL 8]
Docker command to create Rails project with a single blow in environment without Ruby
Summary of frequently used commands in Rails and Docker
virtulbox + vagrant + Docker + nginx + puma + MySQL Rails environment construction
Localhost3000 does not start up in Docker / Rails development.
Build Docker + Laravel PHP + Vue.js development environment in 5 minutes
Regarding overcapacity when setting Rails tutorial environment in Cloud 9
[Note] Build a Python3 environment with Docker in EC2
Dramatically speed up slow bundle install in docker environment