[dancer-users] Can I write own config in config.yml?

chenlin rao rao.chenlin at gmail.com
Mon Dec 10 08:56:46 GMT 2012


I try to write my own elasticsearch config in config.yml:

ElasticSearch:
    servers: "10.10.10.33:9200"
    transport: "httplite"
    max_requests: 10000
    trace_calls: 0
    no_refresh: 0

But after I got the right `config->{ElasticSearch}` in my
lib/DancerApp/A.pm, I got `config->{ElasticSearch}` in my
lib/DancerApp/B.pm returns only one line as 'trace_calls:0'.

I try to got config->{appdir} at multi sub and got right result everywhere.

Why??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20121210/85f94448/attachment.htm>


More information about the dancer-users mailing list