bigpresh / Dancer-Plugin-Database

Dancer::Plugin::Database - easy database support for Dancer applications
http://search.cpan.org/dist/Dancer-Plugin-Database
37 stars 36 forks source link

Finding the database (SQLite) #54

Open ambs opened 10 years ago

ambs commented 10 years ago

If I use "db/foo.db" as my database file, using bin/app.pl finds it, but when using FCGI it doesn't...

bigpresh commented 10 years ago

Hmm - I guess for relative paths, working out the appdir and looking for it there would be sane, rather than relying on the current working directory being the app dir.

Doing this will be slightly more complex now that the core is shared between the D1 & D2 versions of the plugin though.