Re: [Dancer-users] Problems mounting multiple webapps
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@massassi.com> To: "Alex Kalderimis" <alex@flymine.org> Cc: <dancer-users@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@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@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
participants (1)
-
Alex Kalderimis