# Deploying Ruby with large customer base

**URL:** <https://www.ruby-forum.com/t/deploying-ruby-with-large-customer-base/81637>\
**Category:** Ruby\
**Created:** [January 10, 2007, 9:34pm UTC](https://www.ruby-forum.com/t/deploying-ruby-with-large-customer-base/81637 "2007-01-10T21:34:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@rickf](https://www.ruby-forum.com/u/rickf)\
**Post date:** [January 10, 2007, 9:34pm UTC](https://www.ruby-forum.com/t/deploying-ruby-with-large-customer-base/81637/1 "2007-01-10T21:34:58Z")

</div>

Hi all,

I am working on a web project where we are building a web Ruby on Rails  
(ROR) application where the webserver, database and application files  
are deployed per desktop machine. It is not centralized where all users  
hit a single ROR based machine. It is a cross platform web application.  
I should add this is next generation application where the end users  
(number of machines it could be installed on) can and have been in the  
1000s previously.

I have used the rake freeze\_gems command to lock down my versions of the  
gems and created a deployable ROR setup.

Is there a way to deploy ruby at a fixed version and not require a  
formal setup program? Think transparant to the end user…

The point being my install consists of my ROR application directory tree  
with rails in the vendor directory and ruby, of course.

I realize using gems make install easy, however this could become a  
support nightmare. The application will be sold as a boxed product!!!

Any information is appreciated,  
Thanks,  
Rick

---

<div class="post-metadata">

**Author:** ![rickf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@rickf](https://www.ruby-forum.com/u/rickf)\
**Post date:** [January 10, 2007, 10:09pm UTC](https://www.ruby-forum.com/t/deploying-ruby-with-large-customer-base/81637/2 "2007-01-10T22:09:32Z")

</div>

On 1/10/07, Rick F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I have used the rake freeze\_gems command to lock down my versions of the
> 
> Any information is appreciated,  
> Thanks,  
> Rick

On windows: only thing you need to deploy ruby is to copy its files  
somewhere, set PATH to that place/bin and possibly modify some .bat  
files to have the proper paths in them (but it may depend on libs you  
are using).

---

<div class="post-metadata">

**Author:** ![rickf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@rickf](https://www.ruby-forum.com/u/rickf)\
**Post date:** [January 10, 2007, 11:58pm UTC](https://www.ruby-forum.com/t/deploying-ruby-with-large-customer-base/81637/3 "2007-01-10T23:58:54Z")

</div>

Rick F. wrote:

> I have used the rake freeze\_gems command to lock down my versions of the
> 
> Any information is appreciated,  
> Thanks,  
> Rick

Maybe look at RUBYSCRIPT2EXE

[http://www.erikveen.dds.nl/rubyscript2exe/index.html](http://www.erikveen.dds.nl/rubyscript2exe/index.html)  
[http://www.erikveen.dds.nl/distributingrubyapplications/rails.html](http://www.erikveen.dds.nl/distributingrubyapplications/rails.html)

---

<div class="post-metadata">

**Author:** ![rickf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@rickf](https://www.ruby-forum.com/u/rickf)\
**Post date:** [January 19, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/deploying-ruby-with-large-customer-base/81637/4 "2007-01-19T16:30:16Z")

</div>

> Is there a way to deploy ruby at a fixed version and not  
> require a formal setup program?

AllInOneRuby [1] creates allinoneruby.exe, which contains  
ruby.exe, its DLL’s and the standard library. No site-lib  
files, no gems.

Another approach for distributing Rails applications:

Freeze your Rails application, copy the dependencies and gems  
to lib/ in your Rails applications and use AllInOneRuby to  
build a _big_ ruby.exe. ZIP it and ship it…

For example (not tested…):

$ rails -f your\_app  
$ cd your\_app/

$ cp -af /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/\*  
lib/

$ wget  
[http://www.erikveen.dds.nl/allinoneruby/download/allinoneruby.rb](http://www.erikveen.dds.nl/allinoneruby/download/allinoneruby.rb)  
$ ruby allinoneruby.rb

$ ./allinoneruby\_linux script/server

gegroet,  
Erik V. - [http://www.erikveen.dds.nl/](http://www.erikveen.dds.nl/)

[1] [AllInOneRuby - A "Just-in-Time and Temporary Installation of Ruby"](http://www.erikveen.dds.nl/allinoneruby/index.html)
