* write config to file * @param {Config} config
(config)
| 90 | * @param {Config} config |
| 91 | */ |
| 92 | writeConfig(config) { |
| 93 | const configFilepath = path.join(think.RUNTIME_PATH, 'config'); |
| 94 | helper.mkdir(configFilepath); |
| 95 | fs.writeFileSync(`${configFilepath}/${think.app.env}.json`, JSON.stringify(config, undefined, 2)); |
| 96 | } |
| 97 | /** |
| 98 | * load all data |
| 99 | */ |