31 lines
692 B
JavaScript
31 lines
692 B
JavaScript
global.DATA_PATH = "../DATA";
|
|
global.CODE_PATH = process.cwd();
|
|
|
|
require("./core/constant");
|
|
require("./core/library");
|
|
|
|
CheckCreateDir(global.DATA_PATH);
|
|
|
|
console.log('检测相关配置...');
|
|
|
|
global.HTTP_PORT_NUMBER = 80;
|
|
console.log('设置HTTP端口 => 80');
|
|
global.REST_START_COUNT = 5000;
|
|
console.log('开启倒序加载 => 5000');
|
|
global.WATCHDOG_BADACCOUNT = 2;
|
|
console.log('开启账户安全狗 => 2');
|
|
|
|
//global.NET_WORK_MODE = {
|
|
// ip: "",
|
|
// port: 30000,
|
|
// UseDirectIP: true,
|
|
// NodeWhiteList: "",
|
|
// DoRestartNode: 1
|
|
//}
|
|
//global.LISTEN_IP = "0.0.0.0";
|
|
//global.START_PORT_NUMBER = 30000;
|
|
|
|
SAVE_CONST(true);
|
|
console.log("保存配置文件...")
|
|
|
|
process.exit(); |