5
5

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 5 years have passed since last update.

rails better_errors が動作しない場合

Posted at

環境

  • rails 4.0.0
  • better_errors 1.1.0

内容

デフォルトではlocalhost接続のみbetter_errorsが有効になっているようです。

サーバーとクライアントのIPアドレスが異なる場合は、クライアント側のIPを登録すると動作するようになりました。

下記はcharliesome/better_errorsのREADME.mdからの引用です。

# config/environments/development.rb
BetterErrors::Middleware.allow_ip! ENV['TRUSTED_IP'] if ENV['TRUSTED_IP']
TRUSTED_IP=66.68.96.220 rails s

参考

5
5
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
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?