Open lynx12345 opened 5 years ago
Hi!
I read a config.json file in a node file like this:
var config = require('./config.json'); console.log(config.agent + ' ' + config.initcommand);
var config = require('./config.json');
console.log(config.agent + ' ' + config.initcommand);
Work ok when I run with node, but after compiling the config values remain permant in exe file, not reading the config file when I change values.
Is there a problem reading config files like this? or I have to do it in other way?
thnks in advance! LDM
Hi!
I read a config.json file in a node file like this:
var config = require('./config.json');
console.log(config.agent + ' ' + config.initcommand);
Work ok when I run with node, but after compiling the config values remain permant in exe file, not reading the config file when I change values.
Is there a problem reading config files like this? or I have to do it in other way?
thnks in advance! LDM