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.
Restart the server and voila !
Written by Sıtkı Bağdat
Related protips
2 Responses
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
·
I did the same thing and got the same result as fwuensche
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#