[dancer-users] Plack builder error
mark jones
mjemail at me.com
Wed Feb 11 12:23:22 GMT 2015
Thanks Russell,
My bad!! I knew I'd be doing something silly. Now to convince my boss that we need to use Dancer.
MJ
> On 11 Feb 2015, at 11:55, Russell Jenkins <russell.jenkins at strategicdata.com.au> wrote:
>
> Hi Mark,
>
> On 11/02/2015 8:57 pm, mark jones wrote:
>> Following the tutorial here: http://search.cpan.org/~sukria/Dancer2-0.05/lib/Dancer2/Deployment.pod#Running_multiple_apps_with_Plack::Builder.
>
> That tutorial link you provided is to a (very) old version of Dancer2.
>
> I strongly recommend using the latest release (v0.158000) if you need multiple apps [1].
> Your app.psgi then becomes
>
> use Plack::Builder;
> use lib '/home/mj/app1/lib';
> use lib '/home/mj/app2/lib';
>
> use app1;
> use app2;
>
> builder {
> mount "/app1" => app1->psgi_app;
> mount "/app2" => app2->psgi_app;
> };
>
>
> Hope that helps,
> Russell.
>
> [1] well, at least Dancer2 v0.151000 for this example to work.
>
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
More information about the dancer-users
mailing list