update better errors
allow me to pass a special IP address in dev mode so I can debug ( set TRUSTED_IP )
This commit is contained in:
parent
d81a3230b5
commit
a73c9dd530
|
@ -115,7 +115,7 @@ GEM
|
||||||
arel (3.0.2)
|
arel (3.0.2)
|
||||||
barber (0.3.0)
|
barber (0.3.0)
|
||||||
execjs
|
execjs
|
||||||
better_errors (0.5.0)
|
better_errors (0.7.2)
|
||||||
coderay (>= 1.0.0)
|
coderay (>= 1.0.0)
|
||||||
erubis (>= 2.6.6)
|
erubis (>= 2.6.6)
|
||||||
binding_of_caller (0.7.1)
|
binding_of_caller (0.7.1)
|
||||||
|
@ -145,7 +145,7 @@ GEM
|
||||||
ffi (~> 1.0, >= 1.0.6)
|
ffi (~> 1.0, >= 1.0.6)
|
||||||
clockwork (0.4.1)
|
clockwork (0.4.1)
|
||||||
tzinfo
|
tzinfo
|
||||||
coderay (1.0.8)
|
coderay (1.0.9)
|
||||||
coffee-rails (3.2.2)
|
coffee-rails (3.2.2)
|
||||||
coffee-script (>= 2.2.0)
|
coffee-script (>= 2.2.0)
|
||||||
railties (~> 3.2.0)
|
railties (~> 3.2.0)
|
||||||
|
|
|
@ -36,6 +36,7 @@ Discourse::Application.configure do
|
||||||
config.action_mailer.delivery_method = :smtp
|
config.action_mailer.delivery_method = :smtp
|
||||||
config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 }
|
config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 }
|
||||||
config.action_mailer.raise_delivery_errors = true
|
config.action_mailer.raise_delivery_errors = true
|
||||||
|
|
||||||
|
BetterErrors::Middleware.allow_ip! ENV['TRUSTED_IP'] if ENV['TRUSTED_IP']
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue