mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-20 08:35:17 +00:00
Can load configuration from custom file
This commit is contained in:
@ -17,8 +17,10 @@ console.info("Comunic API v6\t@author Pierre HUBERT\t2019-" + new Date().getFull
|
||||
|
||||
async function init() {
|
||||
|
||||
console.info("Load configuration...");
|
||||
ConfigurationHelper.loadConf("config.json");
|
||||
const confFile = process.argv.length < 3 ? "config.json" : process.argv[2];
|
||||
|
||||
console.info("Load configuration from "+confFile+"...");
|
||||
ConfigurationHelper.loadConf(confFile);
|
||||
|
||||
console.info("Connect to database");
|
||||
await DatabaseHelper.connect();
|
||||
|
Reference in New Issue
Block a user