on 2009-03-04 23:49
on 2009-03-05 00:55
adding an entire language with bells and whistles would complicate your install package immensely. given your reqs I'd just plan to run the whole thing in the browser and move it to .js and maybe a filedb.
on 2009-03-05 09:22
Thanks for the response, but my interest is not in *adding* an entire language, but switching to RoR. I want to know if this is possible at all, not just with this app. So the question is reduced to: Is it possible to develop a RoR app that someone can download and install all necessary pieces (web server, database, RoR, and app) for local use only without any technical knowledge?
on 2009-03-05 10:09
Hi David, Always tough to answer a question about how easy something's going to be for a completely non-technical user. (Tech people tend to have a blind spot in this area.) I don't personally know of anyone who's distributing applications like this, so whether or not it's possible for someone to make such a model simple enough and to make it scale. Maybe have a look at Bitnami's RubyStack product (http://bitnami.org/stack/rubystack). Something like that might take you part of the way to where you want to go, though I'm not sure how you would go about wrapping your application code into the installation package. (Maybe try getting in touch with them directly to see if they do custom distributions?) On Thu, Mar 5, 2009 at 9:21 AM, David Nitzsche-Bell <
on 2009-03-05 10:20
It might be worth looking at InstantRails. It provides a single installation that installs (on Windows) Ruby, Rails, web server, mysql and sample rails apps ready to go. If I understand correctly this is virtually what you want to do I think (where your app replaces the sample apps). That suggests that what you want to do is at least feasible. 2009/3/5 Chris Kottom <firstname.lastname@example.org>
on 2009-03-05 10:51
Just out of curiosity: Why did they decide on distributing the app like this, instead of using a central database + web server?
on 2009-03-05 16:45
Hi David, On Thu, 2009-03-05 at 09:21 +0100, David Nitzsche-Bell wrote: > So the question is reduced to: > > Is it possible to develop a RoR app that someone can download and > install all necessary pieces (web server, database, RoR, and app) for > local use only without any technical knowledge? We're developing a product that will be distributed in exactly this way. I (and many others) began RoR using InstantRails which is a 'zero-footprint', full stack development environment.The distro also includes a couple of fully functional example applications. So, IMHO, the pattern's been sufficiently vetted and that's model we'll be using. We haven't decided whether to stick with the .zip approach IR uses or to go the 'installer' route, but are tending towards .zip. The only 'hard part' I'm anticipating is 'stripping down' InstantRails so that the package only contains the 'stuff' needed as a deployment platform for locally run apps. The IR download is pretty big because it includes pretty much everything you'd need for development and even small deployment. Lots of opportunity for 'slimming'. Apache - gone. Scite - gone. PHPAdmin - gone. Etc. Feel free to contact me off-line if you'd like. Best regards, Bill
on 2009-03-05 17:55
David, Maybe something like rubyscript2exe is a way forward. See: http://www.erikveen.dds.nl/rubyscript2exe/ I have used perl2exe, to do almost exactly what you appear to be wanting achieve. It includes an embedded server and the app launches the default user's win32 browser, making it pretty seamless for the user to get going. With rubyscript2exe you get one executable wrapping up all the ruby and rails stuff. On a side note, in the perl version I had some code to replicate and populate the application's paths, but mostly the perl2exe took care of the bulk of this. So far I have not had chance to try out rubyscript2exe so if anyone can add their experience I'd love to know. John
on 2009-03-11 19:05
Like Bill Walton, I am developing and deploying an application with InstantRails. For development I prefer to use Linux but I just install the app on InstantRails (and get rid of the sample apps) and zip it up and the user just has to unzip it and run it. I include a couple of scripts to put in your startup folder so the servers (db and web) start up at windows login. On the unzip, it needs to go into a folder that has no spaces in its file path so I recommend it be unzipped into c: It works fine and is easy to install and uninstall. Good luck Norm
on 2009-03-11 19:34
Bill and Norm and others, Thanks so much for this help and information. It really strengthens my suspicions and I can confidently suggest a better path for future development of the product. Cheers, David
on 2009-03-11 20:30
Hi Norm, On Wed, 2009-03-11 at 11:05 -0700, Norm wrote: > I include a couple of scripts to put in your startup folder > so the servers (db and web) start up at windows login. Do circumstances allow sharing? Best regards, Bill
on 2009-03-12 23:07
on 2009-03-14 03:21
bill walton wrote: > Best regards, > Bill > > Sure. They are nothing special and as I know very little about MS systems there is probably a better way to do it but it works. 1 - start_mysql.bat PATH C:\InstantRails\mysql\bin;%PATH% mysqld 2 - start_server.bat CD C:\InstantRails\rails_apps\open_campground PATH C:\InstantRails\ruby\bin;C:\InstantRails\mysql\bin;%PATH% ruby script\server -e production They require manual editing if InstantRails is installed in someplace other than C: Just copy them into your startup folder and reboot.. Good luck Norm