You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-27 06:23:53 +01:00
hotfix for server startup
This commit is contained in:
@@ -28,7 +28,6 @@ const { logDebug, logError, logInfo, logWarn, logChat } = require('./console');
|
|||||||
const storage = require('./storage');
|
const storage = require('./storage');
|
||||||
const { serverConfig, configExists } = require('./server_config');
|
const { serverConfig, configExists } = require('./server_config');
|
||||||
const pjson = require('../package.json');
|
const pjson = require('../package.json');
|
||||||
const config = require('./../config.json');
|
|
||||||
|
|
||||||
// Function to find server files based on the plugins listed in config
|
// Function to find server files based on the plugins listed in config
|
||||||
function findServerFiles(plugins) {
|
function findServerFiles(plugins) {
|
||||||
@@ -65,7 +64,7 @@ function startPluginsWithDelay(plugins, delay) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get all plugins from config and find corresponding server files
|
// Get all plugins from config and find corresponding server files
|
||||||
const plugins = findServerFiles(config.plugins);
|
const plugins = findServerFiles(serverConfig.plugins);
|
||||||
|
|
||||||
// Start the first plugin after 3 seconds, then the rest with 3 seconds delay
|
// Start the first plugin after 3 seconds, then the rest with 3 seconds delay
|
||||||
if (plugins.length > 0) {
|
if (plugins.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user