Git Product home page Git Product logo

Comments (14)

shaodahong avatar shaodahong commented on May 18, 2024 1

app.properties在其他目录,不在项目目录里,我退到上个版本了,正常使用

from agollo.

lilonghe avatar lilonghe commented on May 18, 2024 1

@zouyx 这个这个 因为不知道会不会有风险,所以还是你看下改了吧... 我就不提 pr 了

func syncServerIpList(newAppConfig *AppConfig) error{
	appConfig:=GetAppConfig(newAppConfig)
	if appConfig==nil{
		return nil
		// panic("can not find apollo config!please confirm!") <- 这个换成了 return nil 
	}

from agollo.

zouyx avatar zouyx commented on May 18, 2024

你好,是否有在项目目录下增加app.properties的配置文件,具体配置文件可以参考:
https://github.com/zouyx/agollo/blob/master/app.properties

整体项目搭建可以参考:https://github.com/zouyx/agollo_demo

from agollo.

Gupern avatar Gupern commented on May 18, 2024

app.properties在其他目录,不在项目目录里,我退到上个版本了,正常使用

为什么上个版本就能正常使用?

@zouyx 请问能指定目录读取配置信息吗?或者像上个版本一样运行时指定配置?

from agollo.

Gupern avatar Gupern commented on May 18, 2024

试了下,运行多次,InitCustomConfig后,有时成功有时不成功。是不是代码里更新配置相关的代码用了异步。

from agollo.

zouyx avatar zouyx commented on May 18, 2024

@Gupern 能否提供一下log?

from agollo.

iammeizu avatar iammeizu commented on May 18, 2024

遇到了相同的问题,已在项目里添加配置信息,退到上个版本正常了

from agollo.

zouyx avatar zouyx commented on May 18, 2024

好的,我抽空看看,最近比较忙。

from agollo.

lilonghe avatar lilonghe commented on May 18, 2024

我 fork 之后把 app_config.go 第 225 行注释掉了...
测试了下貌似没有大问题

from agollo.

zouyx avatar zouyx commented on May 18, 2024

https://github.com/zouyx/agollo/blob/1c7741dd85847d375ba4f724f584e470900dc8ee/app_config.go#L225

225是这一行?能提一个pr我看看吗?不好意思,最近在有空- -让大家久等了

from agollo.

zouyx avatar zouyx commented on May 18, 2024

@lilonghe ok,我试试看

from agollo.

eddycjy avatar eddycjy commented on May 18, 2024

@zouyx 请问最近有打算修复吗?正打算接入...

from agollo.

zouyx avatar zouyx commented on May 18, 2024

@eddycjy 这周内解决

from agollo.

zouyx avatar zouyx commented on May 18, 2024

@lilonghe @eddycjy 你们可以试试master或者v1.6.4,如有问题可以继续反馈或者提pr

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.