You can try to use Mojolicious::Plugin::Mount for solve your problem. One
instance with this plugin will load all your apps.
25.04.2015 12:03 пользователь "mjb152" <[email protected]> написал:

> currently I have 3 domains configured in nginx, which have proxy_pass
> pointing at ports 3000, 3001, 3002.  Then I have 3 apps running with morbo
> on each of those ports.
> It all works well, but I'm now considering several more domains, and
> rebuilding a new server, so I think hypnotoad is the forward.
> Should I create a hynotoad startup script for each domain as per
> http://mojolicio.us/perldoc/Mojo/Server/Hypnotoad , then start this up at
> boot time,   or should I only be running one instance of hypnotoad and
> running everything off that ? (somehow).
>
> my last question, is how can I tell inside my apps which domain has been
> used ?  my $host = $self->req->url->to_abs->host;   or is there a variable
> set in nginx I can refer 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 http://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to