Re: [mongrel2] Replying for any host
- From:
- Zed A. Shaw
- Date:
- 2010-08-30 @ 23:39
On Mon, Aug 30, 2010 at 02:15:11PM -0700, Christopher Mahan wrote:
> On Mon, Aug 30, 2010 at 2:07 PM, Zed A. Shaw <zedshaw@zedshaw.com> wrote:
>
> > Hmm, actually I hadn't tried that. You should be able to just do (.*)
> > for Host.name and it'll work.
>
> Wait, I need to put the parens? like
> Host(name="(.*)", route
>
> how do I specify the (.*) on m2sh launch?
This is why we added the various ways to start, if you do m2sh help -for
start:
m2sh start -db config.sqlite -uuid 3d815ade-9081-4c36-94dc-77a9b060b021
m2sh start -db config.sqlite -host localhost
m2sh start -db config.sqlite -name test
m2sh start -db config.sqlite -every
That way you can use name for the *server* (not host), or -host if you
have a simple default host, or the uuid to be very exact, or just -every
to run them all.
Let me actually try this though and get back to everyone since I hadn't
actually done it.
--
Zed A. Shaw
http://zedshaw.com/
Re: [mongrel2] Replying for any host
- From:
- Alex Gartrell
- Date:
- 2010-08-30 @ 21:16
you actually have to use name= and pattern=. name is the name (for the
purpose of starting it) and pattern is the regex it matches against (.*)
Alex
On Mon, Aug 30, 2010 at 5:15 PM, Christopher Mahan <chris.mahan@gmail.com>wrote:
> On Mon, Aug 30, 2010 at 2:07 PM, Zed A. Shaw <zedshaw@zedshaw.com> wrote:
>
> > Hmm, actually I hadn't tried that. You should be able to just do (.*)
> > for Host.name and it'll work.
>
> Wait, I need to put the parens? like
> Host(name="(.*)", route
>
> how do I specify the (.*) on m2sh launch?
>
> Chris Mahan
> (818) 671-1709
> http://christophermahan.com/
> chris.mahan@gmail.com
>
Re: [mongrel2] Replying for any host
- From:
- Zed A. Shaw
- Date:
- 2010-08-30 @ 23:53
On Mon, Aug 30, 2010 at 05:16:33PM -0400, Alex Gartrell wrote:
> you actually have to use name= and pattern=. name is the name (for the
> purpose of starting it) and pattern is the regex it matches against (.*)
Nope, looks like host matching is a little broken. In the C code we
have pattern= but not in the config since we break it up for you. Turns
out a few edge cases don't work, like (.*) and (.*).org if you just want
a TLD, etc.
--
Zed A. Shaw
http://zedshaw.com/
Re: [mongrel2] Replying for any host
- From:
- Christopher Mahan
- Date:
- 2010-08-30 @ 21:22
http://twitter.com/chris_mahan
On Mon, Aug 30, 2010 at 2:16 PM, Alex Gartrell <agartrell@cmu.edu> wrote:
> you actually have to use name= and pattern=. name is the name (for the
> purpose of starting it) and pattern is the regex it matches against (.*)
How do I define the pattern in the m2sh startup command (do I need to)
and how do I define the default_host in the config file if the host has no name?
Chris Mahan
(818) 671-1709
http://christophermahan.com/
chris.mahan@gmail.com