On Mon, Feb 21, 2011 at 8:11 AM, korssane korssane <[email protected]> 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 ------------------------ [email protected]
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.