-1
You can perform the Reload of the file without Restart of the application:
- I have a file of config.json
, this file is changed sometimes, only the API does not identify this new configuration, only after the application remains.
nconf.argv()
.env()
.file('package', 'package.json')
.file({
file: path.join(__dirname,'../caminho', process.env.NODE_ENV + '.json')
});