[Dancer-users] How to set the environment?

damien krotkine dkrotkine at gmail.com
Thu Dec 16 14:42:55 CET 2010


On IRC, franck realized that he had mistyped his reply to Gabor :

it's PLACK_ENV , not PLACK_ENVIRONMENT


that's all,
dams


On 15 December 2010 09:31, franck <franck at lumberjaph.net> wrote:

>
>> Anyway I also have two different development environments.
>> One of them is a Linux box where I use Apache and it is quite similar to
>> the deployment environment but needs a few different config values.
>> The other one is a Windows box where I run the script and use the
>> built-in web server.
>> Can I have more that two environments ?
>>
>
> you can set your environment with:
>
> "export DANCER_ENVIRONMENT=production"
>
> if you use plack, Dancer will use the one set by plack. To configure plack
> environment, you can use
>
> "plackup -E production"
>
> or
>
> "export PLACK_ENVIRONMENT=production"
>
>
>
> _______________________________________________
> Dancer-users mailing list
> Dancer-users at perldancer.org
> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20101216/4b314ccf/attachment.htm>


More information about the Dancer-users mailing list