[dancer-users] How do I mount a Dancer2 app tree with Plack::Builder?

Curtis Jewell perl at curtisjewell.name
Fri Mar 1 14:53:51 GMT 2013


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 at 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
> > Peter Corrigan,
> > Head of Organisational Development & Performance,
> > James Hardiman Library,
> > National University of Ireland, Galway.
> > Tel +353-87-2798505
> > peter.corrigan at nuigalway.ie
> >
> >
> > On 1 March 2013 08:25, Alexis Sukrieh <sukria at gmail.com> wrote:
> > > Nice catch, will look into that.
> > >
> > > Thanks
> > >
> > > --
> > > Alexis, on the road
> > >
> > > Le 1 mars 2013 à 04:58, Punter <punter at 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 at dancer.pm
> > >> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
> > >>
> > > _______________________________________________
> > > dancer-users mailing list
> > > dancer-users at dancer.pm
> > > http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
> > _______________________________________________
> > dancer-users mailing list
> > dancer-users at dancer.pm
> > http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
> >
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
--
Curtis Jewell
csjewell at cpan.org           http://csjewell.dreamwidth.org/
perl at 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/



More information about the dancer-users mailing list