#Custom Egg trying to edit the configuration files

4 messages · Page 1 of 1 (latest)

obsidian stream
#

Hello not sure if this is the place to put this question, i have created a custom egg that runs a nodejs application. this is working fine however the application has a config file im trying to edit these values via the startup tab in the server

in the egg i have this entered inthe configuration box.
{
"config.js": {
"parser": "file",
"find": {
"token": "{server.build.env.TOKEN}",
}
}
}

export default {
debug: false,
token: "",

};

im trying to edit the token line i have a varible setup called TOKEN however looking at the config.js file the server is not pulling the data entered in the startup tab

Any ideas?

royal tide
#

It is in {{}} and the file parser replaced the whole line

obsidian stream
royal tide
#

It can only be one time in the file. If it is multiple times there then notthing will happen. And the file parser works diffrend. Please look at examples in egg.