Hello Charlie,

Here is a summary of actions i tried based on the postings posted by you, 
Thorsen and Luc.

1. Used morbo and mod_proxy and verified changes to controllers and 
templates are respected without restarting morbo

morbo -w lib/ -w templates/ script/my_app -l "http://*:2999";

There is no change in mod_proxy configuration i have posted earlier

2. Used plackup and mod_proxy and verified changes to controllers and 
templates are respected without killing and restarting plackup

plackup -R templates/ ./script/my_app -l localhost:2999




*Here are my questions*

1. What is the best practice to deploy a mojolicious app to production? 
should i stick to morbo or plackup or hypnotoad? 

2. How do we stop these middleware(morbo/plackup/hypnotoad) instead of 
killing them using ctrl +C in development mode? Should i just create a 
shell script to kill the process using pid? 

3. I undertstand from one of the earlier posts, using mod_perl may not be a 
good idea. Is it ok to use mod_proxy?

4. Even though the requirement is to deploy our app on apache, would it be 
possible to create a webserver neutral deployment? I have tried going 
through psgi materials but i was stuck with the same routing issue i posted 
earlier.

Any help on this would be appreciated.



On Saturday, February 27, 2016 at 8:59:09 PM UTC+5:30, Charlie Brady wrote:
>
>
> On Fri, 26 Feb 2016, [email protected] <javascript:> wrote: 
>
> > just add a look of above link (mod_proxy). How does the virtual host 
> config 
> > will get addressed to the project directory (Mojo App) ? 
>
> You need to run the mojo app on a different port nnnn (e.g. by using 
> hypnotoad). Then you configure mod_proxy to proxy the virtual host to 
> localhost:nnnn. 
>
> The mod_proxy configuration doesn't need to know anything about the 
> project directory - just what port (nnnn) the application is bound to. 
>
> Read the docs that Luc provided a link to. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to