On 07/04/2016 05:40 PM, Wanjuan Yang wrote:
> 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

Hello Wendy,

do you see any errors from the output of your startup command?

Any error messages in the log file?

Regards
        Racke

> 
> 
> 
> 
> On 7/4/16, 4:35 PM, "dancer-users on behalf of Stefan Hornburg (Racke)" 
> <[email protected] on behalf of [email protected]> 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" 
>>> <[email protected] on behalf of [email protected]> wrote:
>>>
>>>> Hi!
>>>>
>>>> 2016-07-04 17:39 GMT+03:00 Wanjuan Yang <[email protected]>:
>>>>
>>>>> 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
>>>> [email protected]
>>>> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>>> _______________________________________________
>>> dancer-users mailing list
>>> [email protected]
>>> 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
>> [email protected]
>> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
> _______________________________________________
> dancer-users mailing list
> [email protected]
> 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
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to