blob: 0ecd85880e729e93a265d66a903277c5449e2248 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/**
* Server configuration script, used reconfiguring server options
*
* Version: v2.0.0
* Developer: Marzavec ( https://github.com/marzavec )
* License: WTFPL ( http://www.wtfpl.net/txt/copying/ )
*
*/
'use strict';
// import required classes
const path = require('path');
const ImportsManager = require('../managers/imports-manager');
const ConfigManager = require('../managers/config');
// import and initialize configManager & dependencies
const importManager = new ImportsManager(null, path.join(__dirname, '../..'));
importManager.init();
const configManager = new ConfigManager(null, path.join(__dirname, '../..'), importManager);
// execute config load with `reconfiguring` flag set to true
configManager.load(true);
|