rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
* Allow network access to Sinatra server running on Rack?
@ 2015-09-02 17:07 jtindall
  2015-09-03 12:40 ` Steve Fazekas
  0 siblings, 1 reply; 5+ messages in thread
From: jtindall @ 2015-09-02 17:07 UTC (permalink / raw)
  To: Rack Development


[-- Attachment #1.1: Type: text/plain, Size: 669 bytes --]

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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 999 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Allow network access to Sinatra server running on Rack?
  2015-09-02 17:07 Allow network access to Sinatra server running on Rack? jtindall
@ 2015-09-03 12:40 ` Steve Fazekas
  2015-09-03 16:11   ` jtindall
  0 siblings, 1 reply; 5+ messages in thread
From: Steve Fazekas @ 2015-09-03 12:40 UTC (permalink / raw)
  To: rack-devel@googlegroups.com

[-- Attachment #1: Type: text/plain, Size: 1326 bytes --]

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
sfazekas@act1.net act1int@hotmail.com
614.989.9764

> On Sep 2, 2015, at 1:07 PM, jtindall@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+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.

[-- Attachment #2: Type: text/html, Size: 2144 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Allow network access to Sinatra server running on Rack?
  2015-09-03 12:40 ` Steve Fazekas
@ 2015-09-03 16:11   ` jtindall
  2015-09-03 16:15     ` jtindall
  0 siblings, 1 reply; 5+ messages in thread
From: jtindall @ 2015-09-03 16:11 UTC (permalink / raw)
  To: Rack Development


[-- Attachment #1.1: Type: text/plain, Size: 1769 bytes --]

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 <javascript:> act...@hotmail.com <javascript:>
> 614.989.9764
>
> On Sep 2, 2015, at 1:07 PM, jtin...@soasta.com <javascript:> 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 <javascript:>.
> 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.

[-- Attachment #1.2: Type: text/html, Size: 3498 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Allow network access to Sinatra server running on Rack?
  2015-09-03 16:11   ` jtindall
@ 2015-09-03 16:15     ` jtindall
  2015-09-07 15:50       ` James Tucker
  0 siblings, 1 reply; 5+ messages in thread
From: jtindall @ 2015-09-03 16:15 UTC (permalink / raw)
  To: Rack Development


[-- Attachment #1.1: Type: text/plain, Size: 2042 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 3198 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Allow network access to Sinatra server running on Rack?
  2015-09-03 16:15     ` jtindall
@ 2015-09-07 15:50       ` James Tucker
  0 siblings, 0 replies; 5+ messages in thread
From: James Tucker @ 2015-09-07 15:50 UTC (permalink / raw)
  To: Rack Development

[-- Attachment #1: Type: text/plain, Size: 3010 bytes --]

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  <jtindall@soasta.com> 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.

[-- Attachment #2: Type: text/html, Size: 4498 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-09-07 15:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-02 17:07 Allow network access to Sinatra server running on Rack? jtindall
2015-09-03 12:40 ` Steve Fazekas
2015-09-03 16:11   ` jtindall
2015-09-03 16:15     ` jtindall
2015-09-07 15:50       ` James Tucker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).