Hi, So Lennon got me going with my database-less Camping app, but I''ve just realized that, I have no deployment strategy. This app is to provide a GUI front end to our FUN3D fluid flow simulation monster, which is used by ourselves, companies, universities, hobbyists, and the military. The end result of which, is a file of (key, value) pairs read by FUN3D. Requiring our users to have Camping installed is too much to ask. While we could host the Camping app, the hassle of getting it approved by our IT folks is daunting, and requiring an Internet connection is troublesome for our black-world users. So, I''m thinking either a stand-alone executable (via RubyScript2Exe?) or a set of static HTML pages they could load locally? Any other suggestions? Thanks, -- Bil Kleb http://fun3d.larc.nasa.gov
You can just include the camping library alongside the app. Put camping.rb (and maybe the folder ''camping'' that has some helper scripts for sessions, webrick, etc.) in the same directory as your main .rb file. In your script, when you say "require ''camping''" it will load Camping from there, instead of looking for the gem. If you remove "require ''rubygems''" from your script, you can test it on your machine to make sure it''s working, without uninstalling the gem. -- Eric On 2/11/07, Bil Kleb <Bil.Kleb at nasa.gov> wrote:> Hi, > > So Lennon got me going with my database-less Camping app, > but I''ve just realized that, I have no deployment strategy. > > This app is to provide a GUI front end to our FUN3D fluid > flow simulation monster, which is used by ourselves, companies, > universities, hobbyists, and the military. The end result > of which, is a file of (key, value) pairs read by FUN3D. > > Requiring our users to have Camping installed is too much > to ask. While we could host the Camping app, the hassle > of getting it approved by our IT folks is daunting, and > requiring an Internet connection is troublesome for our > black-world users. > > So, I''m thinking either a stand-alone executable (via > RubyScript2Exe?) or a set of static HTML pages they could > load locally? > > Any other suggestions? > > Thanks, > -- > Bil Kleb > http://fun3d.larc.nasa.gov > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >
On 2/11/07, Bil Kleb <Bil.Kleb at nasa.gov> wrote:> So, I''m thinking either a stand-alone executable (via > RubyScript2Exe?) or a set of static HTML pages they could > load locally?I''ve used both RubyScript2Exe and Exerb in the past, and actually had quite-good results. It''s been a while since I had to support Windows deployment, but if I recall correctly, RubyScript2Exe offered somewhat simpler packaging, while Exerb allowed for much smaller .exe files, since you could use a compressor like UPX on the "core" image files it used to shrink them considerably. (Again, it''s been at least two years since I really had to think about any of this, though, so I''d check out both projects and see where they''ve gone in the meantime.) RS2E does have the additional advantage of being cross-platform, so if you anticipate having any need to support Linux or Mac OS users, it would be the obvious choice. Good luck, Lennon