Re: Multiple camping apps in the same rackup?

2014-01-01 Thread Magnus Holm
Yes: map "http://example.com"; do run App end // Magnus Holm On Wed, Jan 1, 2014 at 7:16 AM, Tim Uckun wrote: > Can you match on top level domains? > > > On Wed, Jan 1, 2014 at 1:05 AM, Magnus Holm wrote: >> >> Sorry for the late reply. >> >> The easiest way is to use a config.ru file (this

Re: Multiple camping apps in the same rackup?

2013-12-31 Thread Tim Uckun
Can you match on top level domains? On Wed, Jan 1, 2014 at 1:05 AM, Magnus Holm wrote: > Sorry for the late reply. > > The easiest way is to use a config.ru file (this is how you probably > run your Camping app anyway): > > # in config.ru > map "/hello" do > run Hello > end > > map

Re: Multiple camping apps in the same rackup?

2013-12-31 Thread Magnus Holm
Sorry for the late reply. The easiest way is to use a config.ru file (this is how you probably run your Camping app anyway): # in config.ru map "/hello" do run Hello end map "/sinatra" do run Sinatra::Application.new end // Magnus Holm On Sun, Dec 8, 2013 at 12:41 PM, Tim Uc

Multiple camping apps in the same rackup?

2013-12-08 Thread Tim Uckun
The camping book says this You can also use Rack::URLMap to plug a whole bunch of different apps in to one folder. A camping app here, a rails project there, a sinatra doodad over there in the corner messing up the whole global namespace. The possibilities are severely limited! Does anybody have