[Dancer-users] Deploying two dancer apps in same virtual host on apache
Alex Tang
altitude at funkware.com
Tue Sep 6 18:50:32 CEST 2011
Thanks. I'm going to use JSONP (you learn something new every day...can you tell i'm not a frontend developer by trade? :) ), but also two servers as you recommend. I've been crawling through the archives and the source trying to figure out how to get two apps running in apache or even two apps in a single star man instance to run properly. Neither seemed to work well for me. I finally found these messages: http://www.backup-manager.org/pipermail/dancer-users/2011-July/001617.html and http://www.backup-manager.org/pipermail/dancer-users/2011-July/001618.html which seem to say that it's not a good idea to try what i was doing. i've gone back to separate starman servers and proxying from apache.
Thanks!
...alex...
On Sep 5, 2011, at 2:37 AM, Pedro Melo wrote:
> Hi,
>
> On Sun, Sep 4, 2011 at 5:50 PM, Alex Tang <altitude at funkware.com> wrote:
>> I have two dancer apps (a front end UI, and a backend REST server) that i
>> want to have deployed as separate dancer apps. I'd like to do this using
>> apache. i can do it in any way under apache (i have the freedom to
>> configure things most anyway i need).
>
> If the JSONP recommendation from Mr. Puneet Kishor is not an option,
> consider this alternative:
>
> * start both apps independently using one of the PSGI-compatible
> servers. I recommend Starman or Twiggy if you are on a UNIX system;
> * configure you Apache as a reverse proxy, map the main UI app as /
> and the REST API as /api.
>
> That should solve your problem nicely. I use this all the time,
> although I use nginx and not Apache.
>
> Bye,
> --
> Pedro Melo
> @pedromelo
> http://www.simplicidade.org/
> http://about.me/melo
> xmpp:melo at simplicidade.org
> mailto:melo at simplicidade.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110906/a160aa1e/attachment.htm>
More information about the Dancer-users
mailing list