简体   繁体   中英

Node-config global configuration

I'm using latest node-config. Currently, I have a couple of projects with local configs and another project with general config.

This my current structure:

ProjectA/configs/{production, staging, integration} ProjectB/configs/{production, staging, integration} Common/configs/{production, staging, integration}

I need to load Common/configs files inside ProjectA and ProjectB using locally defined NODE_ENV .

Is this feature currently supported? How to implement something like that?

Thanks!

I'm a maintainer of node-config . This feature is not currently supported.

If your config format is JavaScript files (or you are willing to change it). you can use standard Node.js syntax to load the configuration from the common location into the config files for ProjectA and ProjectB .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM