[Dancer-users] Problems mounting multiple webapps
Alex Kalderimis
alex at flymine.org
Sun Jun 12 02:40:55 CEST 2011
thanks for the suggestions Brian.
I have been using Apache reverse proxy very happily for single apps, and have a plugin for handling the header munging. For single apps, reverse proxy is a great solution. We have a public facing app deployed in that manner.
What I'm trying to do here is a bit different. The aim is to run multiple instances of the same code with different properties without having to launch each one separately or tie a certain I instance to a specific port. The objective is managing them as a group, so group restarts and upgrades, and making it easy to add extra apps. Also, I'd prefer just the one starman instance in this case.
On a more fundamental level, the docs should provide accurate u formation, so at the very least the section that suggests a mechanism for multiple side-by-side apps was in need of a test and an update.
Alex.
----- Reply message -----
From: "Brian E. Lozier" <brian at massassi.com>
To: "Alex Kalderimis" <alex at flymine.org>
Cc: <dancer-users at perldancer.org>
Subject: [Dancer-users] Problems mounting multiple webapps
Date: Sun, Jun 12, 2011 00:57
On Sat, Jun 11, 2011 at 3:33 PM, Alex Kalderimis <alex at flymine.org> wrote:
> If anyone is interested, I was able to get three instances of the same
> app mounted successfully, but I had to additionally specify the 'views'
> and 'public' settings, as below:
>
>> set views => $view_dir;
>> set public => 'public';
>
> The full psgi script is here: http://pb.rbfh.de/23RCNzXyqIiJb
Hi Alex,
I've had luck running my app under nginx reverse proxy. I get nginx
to serve the static content directly so my app only handles the
dynamic stuff. It was pretty easy to set up and it might simplify
your configuration. The only tricks are adding settings to nginx to
forward the original Host, user ip, and scheme (to tell https vs
http).
>
> Cheers
>
> On Fri, 2011-06-10 at 20:21 +0100, Alex Kalderimis wrote:
>> I've been having some issues mounting multiple webapps on a single Plack
>> server according to the documentation
>> (http://search.cpan.org/dist/Dancer/lib/Dancer/Deployment.pod).
>>
>> After reading through the source a bit I managed to get my content
>> served, but the static files are all being handled by the route
>> handlers. It seems that somewhere down the line the 'public' setting is
>> going undef, along with all others presumably.
>>
>> Anyway, the log messages I get are here:
>> http://paste.perldancer.org/29wzxHG7VkVoW,
>>
>> And the psgi I'm using is here: http://paste.perldancer.org/OntvcvVUSY7k
>>
>> Any help or suggestions would be greatly appreciated.
>>
>
>
> _______________________________________________
> Dancer-users mailing list
> Dancer-users at perldancer.org
> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110612/45232f7d/attachment.htm>
More information about the Dancer-users
mailing list