From: Alistair H. <ali...@gm...> - 2007-11-17 11:45:16
|
Hello, I'm writing a little app which I want to contain a small web server - I was thinking of using the lovely Camping ( http://code.whytheluckystiff.net/camping/) . Problem is that I'm not sure how I should go about achieving this. Camping is distributed as a Gem so I was thinking I could package the gem source (and its dependencies) into my app. Anyone have any other ideas? I'd be interested to hear peoples thoughts on this. Cheers -- Alistair Holt ali...@gm... |
From: <elo...@gm...> - 2007-11-17 14:46:20
|
Hey Alistair, Standaloneify will already do this for you. Only one catch is that if you are going to fork the process standalonify will never know of the dependencies. So you have to require the depencies in your app as well when running standaloneify. Other than that it works great in an app I'm working on. Cheers, Eloy On 11/17/07, Alistair Holt <ali...@gm...> wrote: > Hello, > I'm writing a little app which I want to contain a small web server - I was > thinking of using the lovely Camping ( > http://code.whytheluckystiff.net/camping/) . Problem is that I'm not sure > how I should go about achieving this. Camping is distributed as a Gem so I > was thinking I could package the gem source (and its dependencies) into my > app. Anyone have any other ideas? I'd be interested to hear peoples thoughts > on this. > > Cheers > > -- > Alistair Holt > ali...@gm... > |
From: Alistair H. <ali...@gm...> - 2007-11-17 17:32:50
|
Thanks Eloy. That looks pretty cool. I will definitely have a play around with that. Cheers! On 17/11/2007, elo...@gm... <elo...@gm...> wrote: > > Hey Alistair, > > > Standaloneify will already do this for you. Only one catch is that if > you are going to fork the process standalonify will never know of the > dependencies. So you have to require the depencies in your app as well > when running standaloneify. Other than that it works great in an app > I'm working on. > > Cheers, > Eloy > > On 11/17/07, Alistair Holt <ali...@gm...> wrote: > > Hello, > > I'm writing a little app which I want to contain a small web server - I > was > > thinking of using the lovely Camping ( > > http://code.whytheluckystiff.net/camping/) . Problem is that I'm not > sure > > how I should go about achieving this. Camping is distributed as a Gem so > I > > was thinking I could package the gem source (and its dependencies) into > my > > app. Anyone have any other ideas? I'd be interested to hear peoples > thoughts > > on this. > > > > Cheers > > > > -- > > Alistair Holt > > ali...@gm... > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > -- Alistair Holt ali...@gm... |
From: Tim P. <he...@ti...> - 2007-11-18 13:45:36
|
Hey Eloy, Alistair, Im sure this topic has come up before on the list. http://sourceforge.net/mailarchive/message.php?msg_id=BDCAF4E2-E8BB-451F-9257-65AF07DC8D26%40timperrett.com Although its Rails, not camping - but doesn't camping use Mongrel as the HTTP server also? Cheers Tim On 17 Nov 2007, at 14:46, elo...@gm... wrote: > Hey Alistair, > > > Standaloneify will already do this for you. Only one catch is that if > you are going to fork the process standalonify will never know of the > dependencies. So you have to require the depencies in your app as well > when running standaloneify. Other than that it works great in an app > I'm working on. > > Cheers, > Eloy |
From: Eloy D. <elo...@gm...> - 2007-11-18 14:06:48
|
I would however use webrick first and switch to mongrel if you really need the extra speed. Because mongrel uses a C extension it will take a bit more work to bundle it and adds approx. 1mb to your app size. Eloy On 18-nov-2007, at 14:45, Tim Perrett <he...@ti...> wrote: > Hey Eloy, Alistair, > > Im sure this topic has come up before on the list. > > http://sourceforge.net/mailarchive/message.php?msg_id=BDCAF4E2-E8BB-451F-9257-65AF07DC8D26%40timperrett.com > > Although its Rails, not camping - but doesn't camping use Mongrel as > the HTTP server also? > > Cheers > > Tim > > On 17 Nov 2007, at 14:46, elo...@gm... wrote: > >> Hey Alistair, >> >> >> Standaloneify will already do this for you. Only one catch is that if >> you are going to fork the process standalonify will never know of >> the >> dependencies. So you have to require the depencies in your app as >> well >> when running standaloneify. Other than that it works great in an app >> I'm working on. >> >> Cheers, >> Eloy > > > --- > ---------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Tim P. <he...@ti...> - 2007-11-18 14:16:08
|
Sure, so the camping server is webrick based? (I know thats a bit OT btw, sorry) Has anyone actually implemented an NSTask (firing mongrel) based system? I must admit I never actually got around to implementing it. If anyone has done it, it would be great if they could share there experiences :) Cheers Tim On 18 Nov 2007, at 14:06, Eloy Duran wrote: > I would however use webrick first and switch to mongrel if you really > need the extra speed. Because mongrel uses a C extension it will take > a bit more work to bundle it and adds approx. 1mb to your app size. |
From: Eloy D. <elo...@gm...> - 2007-11-18 14:28:19
|
I'm using a NSTask for this. It's pretty straightforward. If you or Alistair have some problems just email to the list and I'll see if I can help out. :) Eloy On 18 nov 2007, at 15:15, Tim Perrett wrote: > Sure, so the camping server is webrick based? (I know thats a bit OT > btw, sorry) > > Has anyone actually implemented an NSTask (firing mongrel) based > system? I must admit I never actually got around to implementing it. > If anyone has done it, it would be great if they could share there > experiences :) > > Cheers > > Tim > > > > > On 18 Nov 2007, at 14:06, Eloy Duran wrote: > >> I would however use webrick first and switch to mongrel if you really >> need the extra speed. Because mongrel uses a C extension it will take >> a bit more work to bundle it and adds approx. 1mb to your app size. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Tim P. <he...@ti...> - 2007-11-18 14:51:07
|
Sweet, Cheers as always Eloy :) On 18 Nov 2007, at 14:28, Eloy Duran wrote: > I'm using a NSTask for this. It's pretty straightforward. > If you or Alistair have some problems just email to the list and I'll > see if I can help out. :) |