Hi, I'm about to deploy a ruby client-server application on multiple computers on a LAN, and I was wondering if anyone had experience in this domain. Installation requires a few steps: 1) Install Ruby 2) Install FXRuby 3) Install a few patches 4) Install ODBC for MS Access reporting 4) Install a directory with all the application tree I don't fear a first installation done by hand on each computer. But it would be great if all the updates could be automatic. What is the best direction to take? Gems, Capistrano? Something else, OS-based? Thanks for your ideas and tips! Philippe Lang
on 2007-01-23 16:45
on 2007-01-23 21:05
On 1/23/07, Philippe Lang <firstname.lastname@example.org> wrote: > 4) Install a directory with all the application tree > > I don't fear a first installation done by hand on each computer. But it > would be great if all the updates could be automatic. > > What is the best direction to take? Gems, Capistrano? Something else, > OS-based? > My (weird, but solid) approach was to make an installer using http://nsis.sourceforge.net If you have a deployment toolset (like Novell's Zenworks, Microsoft's stuff, or even login scripts), you can just push out an updated copy of the installer as needed. If not, you can use the compiled NSIS executable like a 'launcher'. I made a simple one with logic like: version = check_installed_version (in registry or on disk) if version == the_one_embedded_in_this_file launch application and exit else run the install then launch app and exit end This means you can have the application shortcut point straight at the installer. When you copy in a fresh version of the file, it silently installs an updated app and then launches. Otherwise, it just adds a few milliseconds to the start time, and pretends to be a shortcut.