Permalink
Browse files

appdir needs to be set before calling load_app

  • Loading branch information...
1 parent 5fe0152 commit 801251c8b2e0bffc090776373680e8759ab6d45d @pjcj committed Feb 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Dancer/Deployment.pod
@@ -179,8 +179,8 @@ Start by creating a simple app.psgi file:
my $app1 = sub {
my $env = shift;
local $ENV{DANCER_APPDIR} = '/Users/franck/tmp/app1';
- load_app "app1";
setting appdir => '/Users/franck/tmp/app1';
+ load_app "app1";
Dancer::App->set_running_app('app1');
Dancer::Config->load;
my $request = Dancer::Request->new( env => $env );
@@ -190,8 +190,8 @@ Start by creating a simple app.psgi file:
my $app2 = sub {
my $env = shift;
local $ENV{DANCER_APPDIR} = '/Users/franck/tmp/app2';
- load_app "app2";
setting appdir => '/Users/franck/tmp/app2';
+ load_app "app2";
Dancer::App->set_running_app('app2');
Dancer::Config->load;
my $request = Dancer::Request->new( env => $env );

1 comment on commit 801251c

sukria commented on 801251c Mar 23, 2012

approved and merging since it's a minor documentation change.

Please sign in to comment.