Giter VIP home page Giter VIP logo

Comments (3)

calvn avatar calvn commented on July 24, 2024

I believe this can be done by having a different version of your configuration file for git2consul that gets deployed to your machine based on what is your target environment. Tools like Puppet, Chef, etc. can achieve this trivially.

Optionally, you can manipulate the config file dynamically with these tools. If you use Puppet, for example, the env-to-branch mapping can be dynamically set to the configuration file via templates and Puppet variables as documented here.

I don't think setting target branches with env variables is the proper approach here.

from git2consul.

stephenlawrence avatar stephenlawrence commented on July 24, 2024

The use-case for this is for a twelve-factor app dockerized git2consul container. When we build the container we copy in our default config.json that is hardcoded to poll our "dev" branch. So when this container gets deployed to a QA environment we would need a way to "override" the branches config value so that an ENV variable could be set when we start the container and git2consul would use as the branches value from ENV instead of the config branches setting.

from git2consul.

calvn avatar calvn commented on July 24, 2024

Closing this. For further explanation see #79.

from git2consul.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.