15 Dec
2010
15 Dec
'10
3:11 a.m.
On Wed, Dec 15, 2010 at 12:44:14AM +0200, Gabor Szabo wrote:
in the $appdir/environments subdir there are two yml files for configuration in development and production environment.
How do I configure which environment is the application running in?
I tried to find it in http://search.cpan.org/dist/Dancer/lib/Dancer/Config.pm but could not find it.
Hi Gabor, You could pass it as a command-line argument. $ myapp.pl --environment=production But I put it right in the script: BEGIN { push @ARGV, qw(--environment=production) } Cheers, Joel
Gabor http://szabgab.com/ -- Joel Roth