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/.
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users