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 3755602
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:43:26+00:00 2026-05-19T09:43:26+00:00

I have a Rails 3 development environment that I need to move to another

  • 0

I have a Rails 3 development environment that I need to move to another machine. I would like to know the best way to move the application code, mysql database, and gems with the least amount of disruption?

  • 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-19T09:43:27+00:00Added an answer on May 19, 2026 at 9:43 am

    In development:

    1. Make sure Ruby version is the same. Copy all gems.
    2. Copy application
    3. Make dump of database and load it to new DB. If DB is exactly same version and OS as well copying binary data files may be enough.

    In production the worst part is syncing DB and DNS.

    1. If you can lower TTL (to 1 hour) on DNS entry of your domain – to have DNS propagation respond better.
    2. Wait previous TTL + new TTL to be sure all clients and proxies updated – in a meantime you can prepare Rails 3 app on new machine.
    3. Setup TCP/IP forwarding on new machine 80 port to old machine 80 port, with exception for your workstation (to have access to app instance on new machine).
    4. Finish preparing app, gems, with copy of db, test it.
    5. If everything is ok, change DNS A entry to new host IP – in this case within 1 hour all clients will be connecting to old instance via new one (forwarding). Wait 1 hour.
    6. Now offline: Stop old instance with maintenance message
    7. Make db dump and load it on new instance
    8. Restart new app instance
    9. Turn off forwarding. End of offline.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rails application running on a Linux server. I would like to
I have a rails model that looks something like this: class Recipe < ActiveRecord::Base
I have a Rails 2.0.2 application running with a postgresql db. The machine will
I have a Rails app that I need to deploy. Here are the facts:
I have a Rails application that generates a weekly report and emails it out.
I have a Rails 3 model D that belongs to another model, which belongs
I have a Ruby on Rails application that has two active environments, Stage and
I have installed RubyMine on Mac but my development environment for Ruby and Rails
I have a Rails application that uses Bundler for dependency management. I've got the
I mucked around my development environment enough that now I have to restart my

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.