[Rails] Quick question about source control...

Michael Koziarski koziarski at gmail.com
Tue Jan 4 04:16:49 GMT 2005


On Tue, 4 Jan 2005 14:10:51 +1100, Peter Sumskas <petersumskas at gmail.com> wrote:
> I may be totally off-track (probably, since I work with windows most
> of the time) but couldn't you put in an `ln -s` from
> /usr/local/bin/ruby to $HOME/ruby1.8.2/bin/ruby or some variant of
> using soft-links to simulate the same structure as you have on your
> production environment?

This is probably the best solution, or almost. On almost all unix
systems /usr/local is owned by root so you won't be able to stick a
symlink in there.   But he could link ~/ruby1.8.2/bin/ruby to
/usr/local/bin/ruby on the powerbook.

Seems like the way to go.
 
> P.
> 
> On Thu, 30 Dec 2004 12:00:49 -0700, Ben Schumacher
> <benschumacher at gmail.com> wrote:
> > Just wanted to make sure I'm on the right track... the general idea
> > for source control with rails is to import the entire ~/myapp (for
> > example) directory into whatever source control system used, correct?
> >
> > Does anybody have any suggestions for how to handle environmental
> > differences on development boxes?
> >
> > For example, I host most of my sites using pair Networks. In their
> > environment, I've had to install (obviously) my own version of ruby
> > 1.8.2 and rails in $HOME/ruby-1.8.2... I more or less followed the
> > instructions on the Wiki for this...
> >
> > However, for development, I use my Powerbook most often (which I can
> > do sans Internet connection)... which has ruby 1.8.2 installed in
> > /usr/local/bin... if I update the shebangs at the top of the
> > dispatcher.* and the scripts/* directory to work with pair, it no
> > longer works on my Powerbook. My directory structures are different
> > enough, and while I could just setup /usr/home/blah/bin on my
> > Powerbook, this seems kinda silly... there must be a better way,
> > right? In addition, I want my database.yml to point to my Powerbook
> > when working on it, so I don't have to be connected to work on it.
> > (I'm on too many planes, obviously...) Has anybody else solved this
> > issue? I'm using CVS for my source... I'm sure there must be a
> > clever/elegant way to do this, but I haven't figured it out yet...
> >
> > The easy solution (of course) would be to just .cvsignore the files
> > that are "localized."
> >
> > Any ideas would be very much appreciated.
> >
> > bs.
> > _______________________________________________
> > Rails mailing list
> > Rails at lists.rubyonrails.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails
> >
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
> 


-- 
Cheers

Koz


More information about the Rails mailing list