Skip to content

Instantly share code, notes, and snippets.

@marr
Created January 5, 2014 10:19
Show Gist options
  • Save marr/8266553 to your computer and use it in GitHub Desktop.
Save marr/8266553 to your computer and use it in GitHub Desktop.
# from https://metacpan.org/pod/release/XSAWYERX/Dancer2-0.11/lib/Dancer2/Cookbook.pod#Plack-middlewares
use Dancer2;
use MyWebApp;
use Plack::Builder;
builder {
enable 'Session', store => 'File';
enable 'Debug', panels => [ qw<DBITrace Memory Timer Dancer::Version> ];
dance;
};
@marr
Copy link
Author

marr commented Jan 5, 2014

plackup -I app/lib -s Starman
[app:4553] error @2014-01-05 02:17:13> Asked for default connection (no name given) but no default connection details found in config in /opt/phormat/local/lib/perl5/Dancer/Plugin/Database/Core.pm l. 61
Error while loading /opt/phormat/app.psgi: Use of uninitialized value in concatenation (.) or string at /opt/phormat/local/lib/perl5/Dancer/Plugin/Database/Core.pm line 202.
Compilation failed in require at /opt/phormat/app.psgi line 2.
BEGIN failed--compilation aborted at /opt/phormat/app.psgi line 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment