[dancer-users] production.yml & development.yml

Stefan Hornburg (Racke) racke at linuxia.de
Mon Jul 4 15:52:35 BST 2016


On 07/04/2016 04:39 PM, Wanjuan Yang wrote:
> Hi,
> 
> There are 2 environment config file in the dancer web framework.
> 
> Where to set which environment file( development.ml or production.yml) is used?
> 
> Many thanks,
> Wendy

Hello Wendy,

by default Dancer uses the development environment.

If you want a different environment, add an option to the plackup command:

plackup -E production

Also, you can set the environment variable DANCER_ENVIRONMENT in your shell:

export DANCER_ENVIRONMENT=production

Regards
        Racke

-- 
Please visit our 3rd Perl Dancer Conference 2016 in Vienna: https://www.perl.dance/.





More information about the dancer-users mailing list