From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.25.143.3 with SMTP id r3csp1440008lfd; Mon, 7 Sep 2015 08:50:33 -0700 (PDT) X-Received: by 10.170.42.20 with SMTP id 20mr20728966ykk.43.1441641033070; Mon, 07 Sep 2015 08:50:33 -0700 (PDT) Return-Path: Received: from mail-yk0-x23f.google.com (mail-yk0-x23f.google.com. [2607:f8b0:4002:c07::23f]) by mx.google.com with ESMTPS id x186si6167101ywb.137.2015.09.07.08.50.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Sep 2015 08:50:33 -0700 (PDT) Received-SPF: pass (google.com: domain of rack-devel+bncBD75LW742ECRBR7EW2XQKGQEQOTVYEY@googlegroups.com designates 2607:f8b0:4002:c07::23f as permitted sender) client-ip=2607:f8b0:4002:c07::23f; Authentication-Results: mx.google.com; spf=pass (google.com: domain of rack-devel+bncBD75LW742ECRBR7EW2XQKGQEQOTVYEY@googlegroups.com designates 2607:f8b0:4002:c07::23f as permitted sender) smtp.mailfrom=rack-devel+bncBD75LW742ECRBR7EW2XQKGQEQOTVYEY@googlegroups.com; dkim=pass header.i=@googlegroups.com; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Received: by mail-yk0-x23f.google.com with SMTP id f83sf15501553yka.0; Mon, 07 Sep 2015 08:50:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=+N1t2mRaaVshBak2M2XzJB1tmupSGNj8UhHvUvcV0Kw=; b=fsCvbI1c6K7ZTzEFLFCUm7Dq0EwvcEvVCCGj4WkpxSPr5UazaSB4rJx8ok8rRWyKBF EEHb5TwulVmAVRHHT0wZ8ow57CHBU9GzeEVAFquLKubXu6QLrFbOeilWYWlUsuhYrW+s MgrqdgeyhJEL/TBfPbfkfbYaP0+JnfTbnTZvcA9S2MIdhuoE9HLXb+q8y42oLugVFzjv 2/fFMfqMrfa2bTueGUvzAAntef1k/iETdijPgNEAbTSLkf468qBOeaoSUO5pj4Bpunc1 czw++KjNNQJvzAbax9P8ZDBh9IP9wBkHmpPZssXlDQKJ5lsWzwmqMd9hEibFSHBrn0zX 7oYw== X-Received: by 10.182.104.132 with SMTP id ge4mr15160obb.41.1441641031920; Mon, 07 Sep 2015 08:50:31 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.182.49.199 with SMTP id w7ls1026327obn.70.gmail; Mon, 07 Sep 2015 08:50:31 -0700 (PDT) X-Received: by 10.182.215.226 with SMTP id ol2mr19153853obc.11.1441641031100; Mon, 07 Sep 2015 08:50:31 -0700 (PDT) Received: from mail-io0-x22a.google.com (mail-io0-x22a.google.com. [2607:f8b0:4001:c06::22a]) by gmr-mx.google.com with ESMTPS id f4si40092igo.2.2015.09.07.08.50.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Sep 2015 08:50:31 -0700 (PDT) Received-SPF: pass (google.com: domain of jftucker@gmail.com designates 2607:f8b0:4001:c06::22a as permitted sender) client-ip=2607:f8b0:4001:c06::22a; Received: by mail-io0-x22a.google.com with SMTP id i196so91733803ioi.3 for ; Mon, 07 Sep 2015 08:50:31 -0700 (PDT) X-Received: by 10.107.41.142 with SMTP id p136mr28147884iop.19.1441641030912; Mon, 07 Sep 2015 08:50:30 -0700 (PDT) MIME-Version: 1.0 References: <0eb69538-c7db-41d9-9675-e4b59c06f2fd@googlegroups.com> <149F4AC5-795E-4051-AF33-6B6B0AF9D1CC@act1.net> In-Reply-To: From: James Tucker Date: Mon, 07 Sep 2015 15:50:21 +0000 Message-ID: Subject: Re: Allow network access to Sinatra server running on Rack? To: Rack Development Content-Type: multipart/alternative; boundary=001a1141f3e28a9a58051f2a3501 X-Original-Sender: jftucker@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jftucker@gmail.com designates 2607:f8b0:4001:c06::22a as permitted sender) smtp.mailfrom=jftucker@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: rack-devel@googlegroups.com X-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , --001a1141f3e28a9a58051f2a3501 Content-Type: text/plain; charset=UTF-8 Those are really server options. Rackup isn't really a framework. People often want to extend it for this purpose, but isnt designed in that way really. What you could do would be to write your own binary, using rack::server and then grab options from there, but in that case you'd really be better off implementing options yourself so that you have more control and aren't reliant on APIs that no one really uses (and thus may be subject to change). Racks server infrastructure has always been designed to be used programmatically for this reason. On Thu, Sep 3, 2015, 1:15 PM wrote: > Aha - it was just a matter of setting the host to 0.0.0.0 in the command > options like so :$ rackup --server thin --host 0.0.0.0 --port 4567 > > Still no idea how to access the options though :( > > > On Thursday, September 3, 2015 at 5:11:42 PM UTC+1, jtin...@soasta.com > wrote: >> >> Hi Steve, >> >> Thanks. I am passing in the port setting when starting rack from the >> command line like so :$ rackup --server thin --host localhost --port 4567 >> >> I also pass in options via the --options flag but can't seem to find any >> documentation on how to access these options anywhere! >> >> James >> >> On Thursday, September 3, 2015 at 2:09:35 PM UTC+1, Steve Fazekas wrote: >>> >>> James, >>> >>> I think I have that config set up for my own use and when I get into >>> work later I'll send you what I have this afternoon. If you think >>> everything is set correctly try setting a different port. >>> >>> Steve Fazekas >>> sfaz...@act1.net act...@hotmail.com >>> 614.989.9764 >>> >>> On Sep 2, 2015, at 1:07 PM, jtin...@soasta.com wrote: >>> >>> Hi all, >>> >>> Sinatra supports access over the network by setting the bind setting to >>> '0.0.0.0' - I can't seem to find any docs on how this is achieved when >>> running Sinatra via Rack::Cascade. Anyone have any Ideas?? >>> >>> Also, finding it hard to find docs on how to pass Rackup --options into >>> the Sinatra app running in Rack::Cascade. >>> >>> Thanks - any help much appreciated! >>> >>> James >>> >>> >>> -- >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Rack Development" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to rack-devel+...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >>> -- > > --- > You received this message because you are subscribed to the Google Groups > "Rack Development" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rack-devel+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "Rack Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to rack-devel+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout. --001a1141f3e28a9a58051f2a3501 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Those are really server options. Rackup isn't really a f= ramework. People often want to extend it for this purpose, but isnt designe= d in that way really.

What you could do would be to write your own binary, using r= ack::server and then grab options from there, but in that case you'd re= ally be better off implementing options yourself so that you have more cont= rol and aren't reliant on APIs that no one really uses (and thus may be= subject to change).

Racks server infrastructure has always been designed to be u= sed programmatically for this reason.


On Thu, Sep 3, 2015, 1:15 P= M=C2=A0 <jtindall@soasta.com&= gt; wrote:
Aha - i= t was just a matter of setting the host to 0.0.0.0 in the command options l= ike so :$ rackup --server thin --host 0.0.0.0 --port 4567

Still no idea how to access the options though :(


On Thursday, September 3, 2015 at 5:11:42 PM UTC+1, jtin...@soasta.com w= rote:
Hi Steve,
Thanks. I am passing in the port setting when starting rack= from the command line like so :$ rackup --server thin --host localhost --p= ort 4567

I also pass in options via the --options = flag but can't seem to find any documentation on how to access these op= tions anywhere!

James

On Thursday, Septembe= r 3, 2015 at 2:09:35 PM UTC+1, Steve Fazekas wrote:
James,

I th= ink I have that config set up for my =C2=A0own use and when I get into work= later I'll send you what I have this afternoon.=C2=A0 If you think eve= rything is set correctly try setting a different port.=C2=A0

Steve F= azekas
614.989.9764

On Sep 2, 20= 15, at 1:07 PM, jtin...@soasta.com wrote:

Hi all,

<= div>Sinatra supports access over the network by setting the bind setting to= '0.0.0.0' - I can't seem to find any docs on how this is achie= ved when running Sinatra via Rack::Cascade. Anyone have any Ideas??

Also, finding it hard to find docs on how to pass Rackup = --options into the Sinatra app running in Rack::Cascade.

Thanks - any help much appreciated!

James


--

---
You received this message because you are subscribed to the Google Groups &= quot;Rack Development" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to rack-devel+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups &= quot;Rack Development" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to rack-devel+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups &= quot;Rack Development" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to rack-dev= el+unsubscribe@googlegroups.com.
For more options, visit http= s://groups.google.com/d/optout.
--001a1141f3e28a9a58051f2a3501--