Skip to content
Snippets Groups Projects
Commit 39bf3b7d authored by syuilo's avatar syuilo
Browse files

Fix bug

parent 2d7525b2
No related branches found
No related tags found
No related merge requests found
......@@ -121,12 +121,6 @@ inquirer.prompt(form).then(as => {
},
url: as['url'],
port: parseInt(as['port'], 10),
https: {
enable: as['https'],
key: as['https_key'] || null,
cert: as['https_cert'] || null,
ca: as['https_ca'] || null
},
mongodb: {
host: as['mongo_host'],
port: parseInt(as['mongo_port'], 10),
......@@ -151,6 +145,14 @@ inquirer.prompt(form).then(as => {
}
};
if (as['https']) {
conf.https = {
key: as['https_key'] || null,
cert: as['https_cert'] || null,
ca: as['https_ca'] || null
};
}
console.log(`Thanks. Writing the configuration to ${chalk.bold(path.resolve(configPath))}`);
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment