Created
January 5, 2014 10:19
-
-
Save marr/8266553 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.