Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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

Comments

No comments

Let's comment your feelings that are more than good

0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Login to continue?

Login or Sign up with social account

Login or Sign up with your email address