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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:00:21+00:00 2026-05-31T16:00:21+00:00

We run 2 different environments on our server – say, production.mydomain.com and staging.mydomain.com The

  • 0

We run 2 different environments on our server – say, production.mydomain.com and staging.mydomain.com

The staging environment is nearly identical to the production environment, except that it often has several new features which are being reviewed (eg new_user_profile, image_tagging, etc). These features are individually accepted by the client at different times.

What is the best way to push any individual feature (eg new_user_profile) from staging to production?

Our setup is listed below, but would like to hear alternatives you use also:

  • Ruby on Rails
  • Git (we have several feature branches, which get merged into a “staging” branch when nearing completion)
  • Capistrano, with multi-staging ext.

We have tried the following two approaches, neither of which works terribly well:

  1. Having lots of if/else statements throughout our code, eg if new_user_profile ….
  2. Deploying individual git branches (eg branch new_user_profile) to staging, getting this reviewed, and then merging to production
  • 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-31T16:00:23+00:00Added an answer on May 31, 2026 at 4:00 pm

    Without additional ifs, your best bet would probably be to merge feature branches into master when they’re ready to deploy. Alternatively, you could implement a feature toggle pattern. I don’t know that there’s a common gem for it, but I’ve used a similar pattern in my own projects. Martin Fowler wrote a good post on feature toggles here if you want to check it out. He makes a pretty valid argument that feature branches go against ideas of continuous integration. I don’t feel so strongly about that, so long as the branches are being run through a CI server, but your milage may vary. I’d like to see a good library that just uses blocks with a feature toggle, so you could do something like:

    with_feature :something do
      #code that should only be enabled with :something feature
    end
    

    Dont know of a well implemented solution for that though. Make a gem and put it on github 🙂

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

Sidebar

Related Questions

In our Rails app environment (ruby 1.8.7 / rails 2.3.12) I can run the
I have a vmdk images of windows XP I run 2 different images on
My new obsession is to see how specific applications run on different versions of
I have a project that is supposed to run on different (at least 2)
I have an Java applications which I would like to run with different values
Passenger s and Taxi s run independently in different threads. After great help of
AWS has several locations for storage and EC2 instances to run upon with different
I run the following command to link the different files in my project. /opt/gcc-4.7-cilkplus/bin/gcc
I run a pretty typical producer/consumer model on different tasks. Task1: Reads batches of
I currently run scans against 16 different /24s on a daily basis using the

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.