Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1085107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:38:47+00:00 2026-05-16T22:38:47+00:00

I’ve posted a couple other questions during this process, but I have a better

  • 0

I’ve posted a couple other questions during this process, but I have a better idea of what I’m trying to do so I thought I’d ask about that.

I’ve inherited a Rails 2.2.2 application, which is currently running in production form on a server I have access to. I’m trying to port that application over to my server, version control, etc. I first tried to copy over the source code and get it running under Rails 3 and the latest versions of gems, but that’s proved to be much more difficult than I thought it would be. It seems like the best solution is to simply use the same version of Rails and other gems that the current system is using, and port over the application as-is.

So I’m wondering what the best way to do that is? I can put the source in my version control system and set up Capistrano and Passenger the same way as they are now. The issue is getting all the gems over in the same version. I’ve heard about freezing Rails and freezing gems, but a lot of the tutorials on it look a bit outdated. Is it safe to freeze the gems on the currently-running production server, or should I just get a list of the gems and their versions and manually install them all on the new server I’m porting over to?

Edit: I followed tadman’s suggestion and set up a Gemfile with all the gems and latest versions installed on the production server, but now I’ve gotten into a versioning mess with those, for example:

Bundler could not find compatible versions for gem "ruby2ruby":
  In Gemfile:
    merb-action-args (= 1.0.8.1) depends on
      ruby2ruby (>= 1.1.9)

    ambition (= 0.5.4) depends on
      ruby2ruby (1.1.8)

The production server has sometimes up to 4 versions of the same gem installed, but Bundler seems to only want to handle one version of each. Is there an easy way to solve a situation like this, or is it back to looking into freezing gems in production?

Edit 2: I wound up removing versions from all gems except for rails and doing bundle install. So far, it seems to be working even though all the versions aren’t matched exactly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T22:38:47+00:00Added an answer on May 16, 2026 at 10:38 pm

    Switching to Rails 3 might be a serious headache, but packaging up the historical versions of the gems can be significantly easier. To a degree this is made easier by bundler where you can declare the specific versions you need in a Gemfile for your application. While this is the de-facto method used in Rails 3, it is platform agnostic and can be used on any version of Rails as a distribution mechanism.

    You can usually determine the version of gems used with gem list as, unless otherwise specified in config/environment.rb the most recent version is selected automatically. It is easy to transform a gem list into a Gemfile.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This could be a duplicate question, but I have no idea what search terms
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I know there's a lot of other questions out there that deal with this
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have thousands of HTML files to process using Groovy/Java and I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.