<div dir="ltr">Thank you for the replies Rik and Curtis. Hope this is not noise for this list. <div>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.<div>

<br></div>
<div>Peter</div><div class="gmail_extra">
<br clear="all"><div><br></div><br><div class="gmail_quote">On 1 March 2013 14:53, Curtis Jewell <span dir="ltr">&lt;<a href="mailto:perl@curtisjewell.name" target="_blank">perl@curtisjewell.name</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Specifically, you have two apps that are entry points into the same<br>
codebase/external storage.<br>
<br>
I would ask how much you could extract out into code that does not rely<br>
on Dancer at all (database queries, etc.), and then the two apps<br>
themselves can be smaller, but call into common code.<br>
<br>
--Curtis<br>
<div><br>
On Fri, Mar 1, 2013, at 6:53, Rik Brown wrote:<br>
&gt; Sounds like you really have two apps there, not one :)<br>
&gt;<br>
&gt; Rik<br>
&gt;<br>
&gt;<br>
&gt; On 1 March 2013 10:06, Peter Corrigan &lt;<a href="mailto:peter.corrigan@nuigalway.ie" target="_blank">peter.corrigan@nuigalway.ie</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
</div><div>&gt; &gt; So can/will a single scoped Dancer2 app listen on multiple http ports<br>
&gt; &gt; with specific routes per port e.g. /search on 80 and /admin on 9000?<br>
&gt; &gt; Peter<br><br>
&gt; &gt;<br>
&gt; &gt; On 1 March 2013 08:25, Alexis Sukrieh &lt;<a href="mailto:sukria@gmail.com" target="_blank">sukria@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt; Nice catch, will look into that.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; --<br>
&gt; &gt; &gt; Alexis, on the road<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Le 1 mars 2013 à 04:58, Punter &lt;<a href="mailto:punter@punter.gr" target="_blank">punter@punter.gr</a>&gt; a écrit :<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;&gt; I followed this tutorial <a href="http://advent.perldancer.org/2012/7" target="_blank">http://advent.perldancer.org/2012/7</a> and built<br>
&gt; &gt; a very small but structured Dancer2 application.<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; Now I would like to mount it as a PSGI application with Plack::Builder.<br>
&gt; &gt; What do I have to do?<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; This here app.psgi configuration definitely doesn&#39;t work:<br>
</div>&gt; &gt; <a href="https://metacpan.org/module/SUKRIA/Dancer2-0.02/lib/Dancer2/Deployment.pod#Running-multiple-apps-with-Plack::Builder(it" target="_blank">https://metacpan.org/module/SUKRIA/Dancer2-0.02/lib/Dancer2/Deployment.pod#Running-multiple-apps-with-Plack::Builder(it</a> was probably built for Dancer1)<br>




<div>&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; Thank you<br>
&gt; &gt; &gt;&gt; _______________________________________________<br>
&gt; &gt; &gt;&gt; dancer-users mailing list<br>
&gt; &gt; &gt;&gt; <a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
&gt; &gt; &gt;&gt; <a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; dancer-users mailing list<br>
&gt; &gt; &gt; <a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
&gt; &gt; &gt; <a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; dancer-users mailing list<br>
&gt; &gt; <a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
&gt; &gt; <a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
&gt; &gt;<br>
&gt; _______________________________________________<br>
&gt; dancer-users mailing list<br>
&gt; <a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
&gt; <a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
</div>--<br>
Curtis Jewell<br>
<a href="mailto:csjewell@cpan.org" target="_blank">csjewell@cpan.org</a>           <a href="http://csjewell.dreamwidth.org/" target="_blank">http://csjewell.dreamwidth.org/</a><br>
<a href="mailto:perl@csjewell.fastmail.us" target="_blank">perl@csjewell.fastmail.us</a>   <a href="http://csjewell.comyr.org/perl/" target="_blank">http://csjewell.comyr.org/perl/</a><br>
<br>
&quot;Your random numbers are not that random&quot; -- perl-5.10.1.tar.gz/util.c<br>
<br>
Strawberry Perl for Windows betas: <a href="http://strawberryperl.com/beta/" target="_blank">http://strawberryperl.com/beta/</a><br>
<div><div><br>
_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
</div></div></blockquote></div><br></div></div></div>