[Dancer-users] Running multiple apps with Plack::Builder

Nick Knutov mail at knutov.com
Thu Apr 21 20:17:46 CEST 2011


I'm reading "Running multiple apps with Plack::Builder" in 
Dancer::Deployment.

There is sample code:

load_app 'MyApp1', 'MyApp2';
[...]
my $app1 = sub {
	my $env = shift;
	my $request = Dancer::Request->new( $env );
	Dancer->dance( $request );
};
my $app2 = sub {
	my $env = shift;
	my $request = Dancer::Request->new( $env );
	Dancer->dance( $request );
};

but this two subs are identical, how Plack::Builder will know which one 
is which?

The second question is will prefix be automatically configured up in 
those apps?

-- 
Best Regards,
Nick Knutov
http://knutov.com
ICQ: 272873706
Voice: +7-904-84-23-130


More information about the Dancer-users mailing list