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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:26:03+00:00 2026-05-26T16:26:03+00:00

I have one application that I sold to multiple clients. Each client has his

  • 0

I have one application that I sold to multiple clients. Each client has his own dedicated application (on Heroku).

The applications of these customers only differ by 3 config files: database.yml, aws.yml and corporate.rb

Locally, I have one master branch and as many other local branches as I have customers. I need these local branches to store the 3 config files of each customer. Every time I make a change on the master, I merge it with every customer branches and push them one by one to Heroku.

This is quite heavy…

Following suggestion of this post: pull/push from multiple remote locations, I created one remote grouped branch and hacked my config file so that this branch is associated to multiple urls.

The problem is that when I try to push it, It refuses to do it because the remotes are not correctly synchronized. If I force the push, it overwrites my config files, which is not a solution either.

I tried to include these config files in .gitignore, but it keeps pushing them.

Any idea to solve this issue? Thanks!!!

  • 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-26T16:26:03+00:00Added an answer on May 26, 2026 at 4:26 pm

    I solved the issue by using Heroku’s environment variables.
    Actually, I don’t have to set any variable to use them. I just use the APP_NAME variable and set my config for each app in an initializer file:

    # Custom values
    
      case ENV['APP_NAME']
      when 'pgp'
        CORPORATE_NAME = 'PGP Development'
        S3_BUCKET = 'pgpdevelopment'
      when 'anchor'
        CORPORATE_NAME = 'Anchor Group'
        S3_BUCKET = 'anchorgroup'
      when 'corionl'
        CORPORATE_NAME = 'Corio NL'
      when 'masterproj'
        CORPORATE_NAME = 'Corporate Demo'
      when 'adg'
        CORPORATE_NAME = 'ADG'
      end
    
    #Default values
    
      CORPORATE_NAME ||= ENV['APP_NAME']
      DEPARTMENT_SELECTION ||= false
      GEOSCOPE_SELECTION ||= false
      GEOSCOPE_DEFAULT ||= 'world'
      DEPARTMENT_DEFAULT ||= 'all'
      S3_BUCKET ||= ENV['APP_NAME']
    
      S3_CREDENTIALS = {
      :access_key_id => my_key_id,
      :secret_access_key => my_access_key
      }
      if Rails.env == "production"
           S3_CREDENTIALS[:bucket] = S3_BUCKET
      else
           S3_CREDENTIALS[:bucket] = "#{S3_BUCKET}_dev"
      end
    

    Thx for putting me on the right track!

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

Sidebar

Related Questions

The problem: we have one application that has a portion which is used by
We have an application that has one or more text console windows that all
I have a web application that has one set of files used by 50+
I have one application that contains sub-applications. I would like to segregate the GIN
I have a single application that allows for multiple user Logins from one workstation.
We are having problem with the server migration. We have one application that are
We have one web application (sharepoint) that collects information from disparate sources. We would
I have one grails application.In that I have one model class named Book. From
I have created one application in flex that is accessing the Java webservice using
I have one form in a PHP (5.2.9-1) application that causes IIS (Microsoft-IIS/6.0) 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.