提交 ce4da8db 编写于 作者: Q Quinton.Xu

update: README.md

上级 790a006b
......@@ -17,7 +17,6 @@ Node.js >= 6.0.0 required.
## Usage
* See [examples](https://github.com/Quinton/node-apollo/tree/master/example)
* TODO: 支持部分热更新
## remoteConfigService
```
......@@ -47,6 +46,11 @@ Node.js >= 6.0.0 required.
apollo.setEnv();
```
>**NOTE:** 注入环境变量到process.env, 详情亲参考[dotenv](https://github.com/motdotla/dotenv#usage).
## TODO
- [] 支持局部配置热更新
## License
[MIT](LICENSE)
\ No newline at end of file
......@@ -16,7 +16,7 @@ describe('#index', function () {
token: '<apollo access token>'
// clientIp: '',
};
const result = await apollo.remoteConfigService(config);
const result = await apollo.remoteConfigService(eggConfig);
assert(Object.keys(result).length > 0, 'Read config failed');
});
it('index.createEnvFile', async () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册