Hi On Thu, Apr 21, 2011 at 8:17 PM, Nick Knutov <mail@knutov.com> wrote:
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?
I've got two applications in production using a single psgi file [1]. The documentation need to be rewrite for this part. About your second question, which prefix are you talking about ? the one where the application will be mounted ? (in my exemple: /app1 or /app2) or the one used inside your application (if you have something like 'load_app "bar", prefix => "/bar"') ? [1] https://gist.github.com/935201
-- Best Regards, Nick Knutov http://knutov.com ICQ: 272873706 Voice: +7-904-84-23-130 _______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
-- franck cuny http://lumberjaph.net - http://github.com/franckcuny