[dancer-users] Multiple config files for Dancer2 app

Amelia Ireland aireland at lbl.gov
Wed Jul 22 23:48:00 BST 2015


(Apologies for the accidental post)

To answer my own question, the easiest thing is to use
app->load_config_file(...) and merge the settings into the app config.


On 22 July 2015 at 15:41, Amelia Ireland <aireland at lbl.gov> wrote:
>
> To answer my own question, the easiest thing is probably going to be for
me to call
>
> ----------------------------------------------------------------------
>>
>>
>> Message: 1
>> Date: Tue, 21 Jul 2015 11:07:24 -0700
>> From: Amelia Ireland <aireland at lbl.gov>
>> To: dancer-users at dancer.pm
>> Subject: [dancer-users] Multiple config files for Dancer2 app
>> Message-ID:
>>         <
CAEWSiHi-JDpm-aQz1s-Tk4ZT5xuZcqDUhJ0hP19U9a9fey+f2w at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>>
>> Hello all,
>>
>> Is there a recommended method for using multiple configuration files for
a
>> Dancer2 application in addition to the config.xxx and
>> development.xxx/production.xxx files? My app uses a couple of databases
>> with passwords that are changed on a regular basis, and I'd like to be
able
>> to drop DB config files into the environments folder and have them
>> automatically included rather than having to edit config files by hand or
>> regenerate them by script. If there's something that already exists that
I
>> can use, that would be great!
>>
>> Thanks!
>> Amelia.
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20150721/d3300e26/attachment-0001.html
>
>>
>> ------------------------------
>>
>> Subject: Digest Footer
>>
>> _______________________________________________
>> dancer-users mailing list
>> dancer-users at dancer.pm
>> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>>
>>
>> ------------------------------
>>
>> End of dancer-users Digest, Vol 65, Issue 10
>> ********************************************
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20150722/618ce149/attachment.html>


More information about the dancer-users mailing list