99_voq
Last Updated: February 25, 2016
·
1.329K
· sbagdat

Better Rails Errors in Nitrous.io

I am using Nitrous.io for a while and liked it very much! When I am developing with Ruby/Rails, I use better_errors gem.

If you are working local and using localhost, there is no problem - better_errors working well. But if you develop on a virtual machine or cloud, You should make a small change in config/environments/development.rb file.

Add this line to the file

BetterErrors::Middleware.allow_ip! '<YOUR_ENV_IP>'

Tip: You can find YOURENVIP, by pressing Toggle env dump link.

Picture

Restart the server and voila !

Picture

2 Responses
Add your response

16457

development.rb

BetterErrors::Middleware.allow_ip! '192.168.xxx.x'

Restart the server and nothing. Is there anything I'm missing?
I picked the IP from REMOTEADDR & REMOTEHOST, which were the same.

over 1 year ago ·
17014

I did the same thing and got the same result as fwuensche

over 1 year ago ·