[Dancer-users] how to set different running environment with Plack::Handler?

P Kishor punk.kish at gmail.com
Fri Aug 20 03:40:36 CEST 2010

The docs say that I can have different config settings for development
and production, and one or the other will be automatically used
depending on my running environment, which I can specify with
--environment command line switch. But, how do I specify this command
line switch when I am running the application via Plack::Handler?
Right now I run the application with the help of the following lines
in my httpd.conf

    <Location />
        SetHandler perl-script
        PerlHandler Plack::Handler::Apache2
        PerlSetVar psgi_app /Users/punkish/Sites/lca/app.psgi

Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
Assertions are politics; backing up assertions with evidence is science

More information about the Dancer-users mailing list