[Dancer-users] config.yml
Todd Bruner
todd.bruner at gmail.com
Tue Jan 4 00:32:35 CET 2011
Could some one point me to at what I'm doing wrong in the config.yml?
I'm following the tutorial and the advent stuff and trying to enable
plack_middlewares.
Here's my config.yml
layout: "main"
charset: "UTF-8"
template: "template_toolkit"
engines:
template_toolkit:
encoding: 'utf8'
start_tag: '[%'
end_tag: '%]'
log: 'debug'
show_errors: 'true'
plack_middlewares:
Debug:
- panels
-
- Memory
- DBITrace
- Timer
Here's the error message when I plackup
$ plackup -S Starman --workers=10 -p 5000 -a bin/app.pl
Error while loading bin/app.pl: Unable to parse the configuration file:
/opt/foobar/webapps/cemconf/config.yml: Died at
/usr/local/share/perl/5.10.0/YAML/Loader.pm line 676, <$IN> line 1.
at /usr/local/share/perl/5.10.0/Dancer/Config.pm line 177
Dancer::Config::load_settings_from_yaml('/opt/foobar/webapps/cemconf/config.yml')
called at /usr/local/share/perl/5.10.0/Dancer/Config.pm line 159
Dancer::Config::load('Dancer::Config') called at
/usr/local/share/perl/5.10.0/Dancer.pm line 225
Dancer::import('Dancer') called at bin/app.pl line 2
Plack::Sandbox::bin_2fapp_2epl::BEGIN() called at
/usr/local/share/perl/5.10.0/Dancer.pm line 2
eval {...} called at /usr/local/share/perl/5.10.0/Dancer.pm line 2
require bin/app.pl called at (eval 8) line 3
eval 'package Plack::Sandbox::bin_2fapp_2epl;
{
my $app = do $_file;
if ( !$app && ( my $error = $@ || $! )) { die $error; }
$app;
}
;' called at /usr/local/share/perl/5.10.0/Plack/Util.pm line 108
Plack::Util::_load_sandbox('bin/app.pl') called at
/usr/local/share/perl/5.10.0/Plack/Util.pm line 124
Plack::Util::load_psgi('bin/app.pl') called at
/usr/local/share/perl/5.10.0/Plack/Runner.pm line 173
Plack::Runner::__ANON__() called at
/usr/local/share/perl/5.10.0/Plack/Runner.pm line 23
Plack::Runner::__ANON__() called at
/usr/local/share/perl/5.10.0/Plack/Runner.pm line 23
Plack::Runner::__ANON__() called at
/usr/local/share/perl/5.10.0/Plack/Runner.pm line 23
Plack::Runner::__ANON__() called at
/usr/local/share/perl/5.10.0/Plack/Runner.pm line 23
Plack::Runner::__ANON__() called at
/usr/local/share/perl/5.10.0/Plack/Loader.pm line 56
Plack::Loader::preload_app('Plack::Loader=HASH(0x91d2550)',
'CODE(0x93054e0)') called at /usr/local/share/perl/5.10.0/Plack/Runner.pm
line 253
Plack::Runner::run('Plack::Runner=HASH(0x9119bf0)') called at
/usr/local/bin/plackup line 10
BEGIN failed--compilation aborted at bin/app.pl line 2.
Thanks for any help!
------------------------------
todd.bruner at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110103/74646870/attachment-0001.htm>
More information about the Dancer-users
mailing list