[Dancer-users] Plugin::Database - suggestion to read username/password from a different file
Natal Ngétal
hobbestigrou at erakis.im
Sun Sep 25 11:53:32 CEST 2011
2011/9/22 Assaf Gordon <gordon at cshl.edu>:
> Instead of specifying "username/password" in your yml config file, I've added a new setting called "credentials".
> This one points to a simple text file that would contain the user name and password.
Cool it's a good idea.
>
> So my new config looks like this:
> ====
> plugins:
> Database:
> driver: 'mysql'
> database: 'devdb'
> credentials: 'database.secret'
> =====
> And the username password are stored in "database.secret":
> =====
> $ cat database.secret
> username=myuser
> password=mypassword
> ====
Ok.
> The patch is available here:
> https://github.com/agordon/Dancer-Plugin-Database/commit/5564d0c729899c45b86a7f9872cf680d940f2b0c
Thanks.
--
\0/ Hobbestigrou
site web: erakis.im
More information about the Dancer-users
mailing list