List Info

Thread: An absolute minimal install of ruby and rails.




An absolute minimal install of ruby and rails.
user name
2006-09-18 22:38:27
Hello All.

I am trying to distribute rails apps to several windows
servers.  I
don't want to install and update a separate ruby install on
each
machine so I was thinking about using ifolders as a
deployment tool.
Ifolders is a wonderful product but occationally it has
problems
syncronizing large amounts of data.

What I would like to do is to deploy the smallest subset of
ruby
including all the site libs and gems and maybe apache (not
really
required because I can use mongrel).

Would it work to simply copy the bin and lib directories of
the
allinone/ruby tree? Can I do anything to clear out the older
libs and
gems? Can I clear the cache? what is the best way to set the
path on
the machines?

Any advice would be much appreciated.

Thanks.
_______________________________________________
Instantrails-users mailing list
Instantrails-usersrubyforge.org
http://rubyforge.org/mailman/listinfo/instantrails-users

An absolute minimal install of ruby and rails.
user name
2006-09-19 00:20:56
Yes, the bin and lib directories are the only thing you need out of the ruby dir. Also, you can go to the command line and "gem uninstall fxruby" because you won't need that and its pretty big.

curt

On 9/18/06, Tim Uckun <gmail.com">timuckungmail.com> wrote:
Hello All.

I am trying to distribute rails apps to several windows servers.&nbsp; I
don't want to install and update a separate ruby install on each
machine so I was thinking about using ifolders as a deployment tool.
Ifolders is a wonderful product but occationally it has problems
syncronizing large amounts of data.

What I would like to do is to deploy the smallest subset of ruby
including all the site libs and gems and maybe apache (not really
required because I can use mongrel).

Would it work to simply copy the bin and lib directories of the
allinone/ruby tree? Can I do anything to clear out the older libs and
gems? Can I clear the cache? what is the best way to set the path on
the machines?

Any advice would be much appreciated.

Thanks.
_______________________________________________
Instantrails-users mailing list
rubyforge.org">Instantrails-usersrubyforge.org
http://rubyforge.org/mailman/listinfo/instantrails-users

An absolute minimal install of ruby and rails.
user name
2006-09-19 03:29:48
> Yes, the bin and lib directories are the only thing you
need out of the ruby
> dir. Also, you can go to the command line and
"gem uninstall fxruby" because
> you won't need that and its pretty big.


Here is what I have done so far.

I copied the ruby directory from instantrails into another
directory.
I deleted all the directories except for bin and lib.
I opened up a command prompt and set my path to the new
directory and
nothing else.
I did a gem clean and it cleaned up all the old gems IN THE
NEW
DIRECTORY!. (ruby rocks)
I then did a gem uninstall fxruby.
Then I manually went in and cleared the cache directory and
the
gems/doc directory.

At the end of all this I have 29.5 megs of stuff in 3219
files.  Each
gem has it's own doc directory and I suppose I can delete
those too to
get a little more space.

Here is my problem though. All the cmd files in the bin
directory have
hard coded paths in them of where instantrails used to be.
For example
the cap.cmd says ruby
"D:/InstantRails/ruby/bin/cap" %*

That's not good. I want this app to be totally portable so
there
should be no absolute paths at all.  I suppose I could set
some
environment variable or something. Is there a better way to
do this?
Does the windows command line have any equivalent of
__FILE__?
_______________________________________________
Instantrails-users mailing list
Instantrails-usersrubyforge.org
http://rubyforge.org/mailman/listinfo/instantrails-users

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )