Commit 9fa9d74f12ed3bbf6790ce69a05b2f43fa1b4db6
Committed by
Daniela Feitosa
1 parent
612f0c89
Exists in
master
and in
28 other branches
Documenting how enable exception notifications in development environment
(ActionItem1837)
Showing
1 changed file
with
14 additions
and
0 deletions
Show diff stats
HACKING
@@ -70,3 +70,17 @@ environment, you must run the delayed_job server like this: | @@ -70,3 +70,17 @@ environment, you must run the delayed_job server like this: | ||
70 | ./script/delayed_job run | 70 | ./script/delayed_job run |
71 | 71 | ||
72 | This will block your terminal. To stop the delayed_job server, hit Control-C. | 72 | This will block your terminal. To stop the delayed_job server, hit Control-C. |
73 | + | ||
74 | +== Enabling exceptions notification | ||
75 | + | ||
76 | +By default, exception notifications are disabled in development environment. If | ||
77 | +you want to enable it then you need to change some files: | ||
78 | + | ||
79 | +1) Add in config/environments/development.rb: | ||
80 | + config.action_controller.consider_all_requests_local = false | ||
81 | + | ||
82 | +2) Add in app/controller/application.rb: | ||
83 | + local_addresses.clear | ||
84 | + | ||
85 | +3) Add in config/noosfero.yml at development section: | ||
86 | + exception_recipients: [admin@example.com] |