On Tue, 2007-05-15 at 17:34 +0000, __wyatt wrote: > On May 15, 12:56 am, voltron <[EMAIL PROTECTED]> wrote: > > Hi all > > > > I have taken the advice from this forum and have installed nginx as a > > proxy to the paster server. this works well, but I´m really, really > > worried about using the Paster server in a production site, for > > example, when testing a Mako template, the server just died. Are there > > tips out there to ensure stability? Or at least to make sure that all > > types of errors are handled gracefully? > > I'm not sure this is a Paster issue. I think any back end server will > crash on an unhandled exception.
> You could wrap all your render_response calls in a try/except (via a > custom render_response method, say) and email any unexpected errors to > yourself. Or something of that nature... Hm, this is what mine does already (exceptions don't crash Paster, but I do get an email containing the exception). Perhaps this segment from my .ini file does it? [DEFAULT] debug = false email_to = [EMAIL PROTECTED] smtp_server = localhost error_email_from = [EMAIL PROTECTED] I haven't looked at the source, but possibly setting these values enables exception handling in Paster that isn't on by default. Also, since you're using Nginx, I *highly* recommend setting up multiple backends as outlined here: http://blog.twisty-industries.com/users/cliff/load-balancing-for-turbogears-using-nginx These instructions are easily applicable to Pylons/Paste as well as TurboGears. Cliff --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
