[Catalyst] debug mode

mreece at vinq.com mreece at vinq.com
Mon Jun 4 15:52:19 GMT 2007


i use the following in sandbox httpd.conf's:

  <Perl>
    BEGIN { $ENV{MYAPP_DEBUG} = 1; }
    use MyApp;
  </Perl>

and s/1/0/ for prod.

> What is the best way to deal with the -Debug flag between a production and
> development environment?  Obviously its not desirable to go into the file
> and remove the flag every time the code goes to prod.   I see you can
> start
> the stanalone server with -d to force debug.  I think I remember about an
> environment variable to set debug also.  Is the preferred method to take
> the
> hardcoded flag out and use one of these, or is there another way (such as
> a
> config option)?  How are people dealing with this?
>
> Thanks,
> John
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
>




More information about the Catalyst mailing list