Skip to content

Commit

Permalink
setting appdir should be after Dancer::App->set_running_app because o…
Browse files Browse the repository at this point in the history
…therwise there no Dancer::App->current application as we want in examples
  • Loading branch information
Perlover committed Oct 14, 2011
1 parent 2f07ebf commit 14be05b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Dancer/Deployment.pod
Expand Up @@ -176,9 +176,9 @@ Start by creating a simple app.psgi file:
my $app1 = sub {
my $env = shift;
local $ENV{DANCER_APPDIR} = '/Users/franck/tmp/app1';
setting appdir => '/Users/franck/tmp/app1';
load_app "app1";
Dancer::App->set_running_app('app1');
setting appdir => '/Users/franck/tmp/app1';
Dancer::Config->load;
my $request = Dancer::Request->new( env => $env );
Dancer->dance($request);
Expand All @@ -187,9 +187,9 @@ Start by creating a simple app.psgi file:
my $app2 = sub {
my $env = shift;
local $ENV{DANCER_APPDIR} = '/Users/franck/tmp/app2';
setting appdir => '/Users/franck/tmp/app2';
load_app "app2";
Dancer::App->set_running_app('app2');
setting appdir => '/Users/franck/tmp/app2';
Dancer::Config->load;
my $request = Dancer::Request->new( env => $env );
Dancer->dance($request);
Expand Down

0 comments on commit 14be05b

Please sign in to comment.