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

Wanjuan Yang wy1 at sanger.ac.uk
Mon Jul 4 16:40:15 BST 2016


Hi Race,

The website is not running when I switch to production.yml
With the same content in yml file, but using development.yml. It is working alright.

Any ideas?

Thanks,
Wendy




On 7/4/16, 4:35 PM, "dancer-users on behalf of Stefan Hornburg (Racke)" <dancer-users-bounces at dancer.pm on behalf of racke at linuxia.de> wrote:

>On 07/04/2016 05:33 PM, Wanjuan Yang wrote:
>> Thanks for the reply!
>> 
>> I found the config file in /data/dancer/
>> 
>> I changed the following line '-E development' to '-E production'
>> 
>> Now it looks like:
>> 
>> STARMAN_OPTS="--workers 4 -E production --preload_app"
>> 
>> 
>> 
>> And the development.yml is exactly the same as production.yml
>> 
>> But it becomes not working when switching to production.
>> 
>> Any ideas what is missing? Are there anywhere else need to change to production as well?
>> 
>> Many thanks,
>> Wendy 
>
>How do you know it is not working when both environment files are the same?
>
>Regards
>	Racke
>
>> 
>> 
>> 
>> 
>> 
>> 
>> On 7/4/16, 3:50 PM, "dancer-users on behalf of WK" <dancer-users-bounces at dancer.pm on behalf of wanradt at gmail.com> wrote:
>> 
>>> Hi!
>>>
>>> 2016-07-04 17:39 GMT+03:00 Wanjuan Yang <wy1 at sanger.ac.uk>:
>>>
>>>> There are 2 environment config file in the dancer web framework.
>>>>
>>>> Where to set which environment file( development.ml or production.yml) is
>>>> used?
>>>
>>> It depends, how you deploy your app, but if you run wit default
>>> development server,
>>> http://search.cpan.org/dist/Dancer/lib/Dancer/Introduction.pod says:
>>>
>>> "you can change the running environment using the --environment
>>> command line switch"
>>>
>>>From http://search.cpan.org/dist/Dancer/lib/Dancer/Deployment.pod :
>>>
>>> Another way is to set env variable:
>>>    DANCER_ENVIRONMENT "production"
>>>
>>> Or with plackup:
>>>
>>>    plackup -E deployment -s Starman --workers=10 -p 5001 -a bin/app.pl
>>>
>>> And while running with uwsgi, it assumes your environment is "uwsgi",
>>> so you should have config file "uwsgi.yml".
>>>
>>> -- 
>>> Wbr
>>> Kõike hääd,
>>>
>>> Gunnar
>>> _______________________________________________
>>> dancer-users mailing list
>>> dancer-users at dancer.pm
>>> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>> _______________________________________________
>> dancer-users mailing list
>> dancer-users at dancer.pm
>> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>> 
>
>
>-- 
>Please visit our 3rd Perl Dancer Conference 2016 in Vienna: https://www.perl.dance/.
>
>
>
>_______________________________________________
>dancer-users mailing list
>dancer-users at dancer.pm
>http://lists.preshweb.co.uk/mailman/listinfo/dancer-users


More information about the dancer-users mailing list