LoginSignup
0
0

More than 3 years have passed since last update.

Rails + Docker環境でBetterErrorsを表示する

Posted at
$ docker-compose up

コマンドを打っても通常のエラー画面が表示される。

解決策

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

このコードを追記する。
BetterErrorsはdevelopmentでしか使っていないらしいです!
なのでenvで条件をつけます!

以上です。。。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0