Thank you for the replies Rik and Curtis. Hope this is not noise for this list. 
So it works akin to CGI under Apache in that while the httpd server may be bound to multiple ports, our app will only get traffic from a specific port. Of course, unlike CGI our app is not invoked anew for each request. The localisation we get with Dancer2 extends to variables within the Dancer applications environment. The http port is set further down the stack and not reachable by the app.

Peter



On 1 March 2013 14:53, Curtis Jewell <perl@curtisjewell.name> wrote:
Specifically, you have two apps that are entry points into the same
codebase/external storage.

I would ask how much you could extract out into code that does not rely
on Dancer at all (database queries, etc.), and then the two apps
themselves can be smaller, but call into common code.

--Curtis

On Fri, Mar 1, 2013, at 6:53, Rik Brown wrote:
> Sounds like you really have two apps there, not one :)
>
> Rik
>
>
> On 1 March 2013 10:06, Peter Corrigan <peter.corrigan@nuigalway.ie>
> wrote:
>
> > So can/will a single scoped Dancer2 app listen on multiple http ports
> > with specific routes per port e.g. /search on 80 and /admin on 9000?
> > Peter

> >
> > On 1 March 2013 08:25, Alexis Sukrieh <sukria@gmail.com> wrote:
> > > Nice catch, will look into that.
> > >
> > > Thanks
> > >
> > > --
> > > Alexis, on the road
> > >
> > > Le 1 mars 2013 à 04:58, Punter <punter@punter.gr> a écrit :
> > >
> > >> I followed this tutorial http://advent.perldancer.org/2012/7 and built
> > a very small but structured Dancer2 application.
> > >>
> > >> Now I would like to mount it as a PSGI application with Plack::Builder.
> > What do I have to do?
> > >>
> > >> This here app.psgi configuration definitely doesn't work:
> > https://metacpan.org/module/SUKRIA/Dancer2-0.02/lib/Dancer2/Deployment.pod#Running-multiple-apps-with-Plack::Builder(it was probably built for Dancer1)
> > >>
> > >> Thank you
> > >> _______________________________________________
> > >> dancer-users mailing list
> > >> dancer-users@dancer.pm
> > >> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
> > >>
> > > _______________________________________________
> > > dancer-users mailing list
> > > dancer-users@dancer.pm
> > > http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
> > _______________________________________________
> > dancer-users mailing list
> > dancer-users@dancer.pm
> > http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
> >
> _______________________________________________
> dancer-users mailing list
> dancer-users@dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
--
Curtis Jewell
csjewell@cpan.org           http://csjewell.dreamwidth.org/
perl@csjewell.fastmail.us   http://csjewell.comyr.org/perl/

"Your random numbers are not that random" -- perl-5.10.1.tar.gz/util.c

Strawberry Perl for Windows betas: http://strawberryperl.com/beta/

_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users