Re: [Rails] What version of Rail, Ruby & my website is using?
On Mon, Feb 21, 2011 at 8:11 AM, korssane korssane <lists@ruby-forum.com> wrote:
> I am working on importing a website locally to do some changes in a safe
> mode.
>
> Is there a way to go to the website itself and check what is the
> package ( rails version ,..etc) in order to avoid any conflict?
If it's a Rails 2.x.x app, there's probably going to be a line near the top
of config/environment.rb like:
RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION
You can also use the commands `rails -v`, `ruby -v`, `gem list`, and
`gem env` to explore the original environment.
Having recently gone through this with an app I didn't write, I'd suggest
(assuming it's not under any source control)
1) tar up the whole thing and untar it on your system
2) create a git repo and commit the app as-is
3) try to run the tests and/or run the app locally; if anything's missing
on your system that the app needs, you'll know quickly enough. :-)
4) this may be a good point to set up a separate gemset, if you're using
rvm locally.
If the original system and your system are different architectures,
you might have to un-vendor gems with native code.
Good luck!
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home