I think the ability to load multiple Camping apps at once makes things a lot more difficult (e.g. how to deal with static files). Does anyone actually use this feature? // Magnus Holm
I''ve never found myself working on multiple apps at once in a dev environment. Dave On Tue, Dec 20, 2011 at 6:14 AM, Magnus Holm <judofyr at gmail.com> wrote:> I think the ability to load multiple Camping apps at once makes things > a lot more difficult (e.g. how to deal with static files). > > Does anyone actually use this feature? > > // Magnus Holm > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list-- Dave
Den 2011-12-20 14:09:02 skrev David Susco <dsusco at gmail.com>:> I''ve never found myself working on multiple apps at once in a dev > environment. > > DaveI haven''t either, but I can definitely see myself using it sometime. -- Twitter: http://twitter.com/bitpuffin/ Blog: http://bitpuffin.tumblr.com/ Github: http://github.com/milkshakepanda/
On Tue, Dec 20, 2011 at 15:14, Isak Andersson <IcePapih at lavabit.com> wrote:> Den 2011-12-20 14:09:02 skrev David Susco <dsusco at gmail.com>: > > >> I''ve never found myself working on multiple apps at once in a dev >> environment. >> >> Dave > > > I haven''t either, but I can definitely see myself using it sometime.The new Camping Server will be able to run rackup-files. Would it be good enough if you had to do this? # in both.ru require ''app'' require ''app2'' map ''/app'' do run App end map ''/app2'' do run App2 end $ camping both.ru
Magnus, would that still support the dynamic reloading of the app file that the camping server does now? Dave On Tue, Dec 20, 2011 at 9:41 AM, Magnus Holm <judofyr at gmail.com> wrote:> On Tue, Dec 20, 2011 at 15:14, Isak Andersson <IcePapih at lavabit.com> wrote: >> Den 2011-12-20 14:09:02 skrev David Susco <dsusco at gmail.com>: >> >> >>> I''ve never found myself working on multiple apps at once in a dev >>> environment. >>> >>> Dave >> >> >> I haven''t either, but I can definitely see myself using it sometime. > > The new Camping Server will be able to run rackup-files. Would it be > good enough if you had to do this? > > ?# in both.ru > ?require ''app'' > ?require ''app2'' > ?map ''/app'' do run App end > ?map ''/app2'' do run App2 end > > $ camping both.ru > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list-- Dave
On Tue, Dec 20, 2011 at 16:36, David Susco <dsusco at gmail.com> wrote:> Magnus, would that still support the dynamic reloading of the app file > that the camping server does now? > > DaveYes. It will watch both apps.
I have never used that feature either. And for my apps I prefer to keep things compartimentalized / isolated anyway. On 12/20/2011 6:09 AM, David Susco wrote:> I''ve never found myself working on multiple apps at once in a dev environment. > > Dave > > On Tue, Dec 20, 2011 at 6:14 AM, Magnus Holm<judofyr at gmail.com> wrote: >> I think the ability to load multiple Camping apps at once makes things >> a lot more difficult (e.g. how to deal with static files). >> >> Does anyone actually use this feature? >> >> // Magnus Holm >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20111220/5a359d7e/attachment.html>
On Tue, Dec 20, 2011 at 12:14, Magnus Holm <judofyr at gmail.com> wrote:> I think the ability to load multiple Camping apps at once makes things > a lot more difficult (e.g. how to deal with static files). > > Does anyone actually use this feature? > > // Magnus HolmJust realized that we have a slight problem: How to deal with `camping app.rb` where app.rb is: Camping.goes :App Camping.goes :OtherThing Possible solutions: - Always choose the first/last app - Choose one that matches the filename - Show an error You should always be able to create a "config.ru" which explicitly tells Camping/Rack how to run the app: # config.ru require ''app'' run OtherThing Therefore it feels best to choose one that matches the filename, and show an error otherwise if there''s no such app. This means that it works as expected for people who name their apps/files correctly, and it shows that something in wrong for those who don''t. Of course, if there''s just one app that was loaded, we can always use that one. We only need to be picky in multi-app cases. Thoughts?