Git Product home page Git Product logo

Comments (4)

zouyx avatar zouyx commented on May 18, 2024

@qiluge 你好,是否能跟我描述一下场景呢

from agollo.

qiluge avatar qiluge commented on May 18, 2024

https://github.com/ctripcorp/apollo/wiki/Apollo%E9%85%8D%E7%BD%AE%E4%B8%AD%E5%BF%83%E4%BB%8B%E7%BB%8D#41-core-concepts

https://github.com/ctripcorp/apollo/wiki/Java%E5%AE%A2%E6%88%B7%E7%AB%AF%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97#1241-environment

环境有开发,测试,仿真,生产等环境,集群可以按照数据中心分。

目前的代码里集群是通过app.properties配置的,但是这个配置还不支持Environment配置。

from agollo.

qiluge avatar qiluge commented on May 18, 2024

哦,能通过配置不同的IP来对应不同的环境。

from agollo.

zouyx avatar zouyx commented on May 18, 2024

@qiluge 你好,我知道了,go这边的实现和java有点不一样

java是通过spring读取各个环境的配置文件,进行分配多环境。

golang是通过各个环境使用不一样的配置文件内容。

当然,你可以使用默认的配置文件,也可以指定配置文件,详情:点我

例如:

开发使用application.properties

{
    "appId": "test",
    "cluster": "dev",
    "namespaceName": "application.json,a.yml",
    "ip": "localhost:8888"
}

测试使用application.properties

{
    "appId": "test",
    "cluster": "test",
    "namespaceName": "application.json,a.yml",
    "ip": "localhost:8889"
}

from agollo.

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.