diff --git a/index.js b/index.js index 59b8d5f..24d0c37 100644 --- a/index.js +++ b/index.js @@ -34,7 +34,7 @@ if (config.serverType === 0) { // Only run the image Importer when Aqua is activ .on('error', (error) => { console.error(`Watcher error: ${error}`); }); -} else if (config.ArtImageDirectory){ +} else if (config.ArtImageDirectory && config.ArtImageImport === true){ const watcher = chokidar.watch(config.ArtImageDirectory, { persistent: true }); @@ -59,6 +59,8 @@ if (config.serverType === 0) { // Only run the image Importer when Aqua is activ .on('error', (error) => { console.error(`Watcher error: ${error}`); }); +} else { + console.log("Image Export Disabled. Check readme.md for details.") } // readFileSync function must use __dirname get current directory @@ -89,7 +91,7 @@ app.use(function (req, res, next) { next(createError(404)); }); -var PORT = process.env.PORT || 8000 +var PORT = config.hostPort || 8000 // error handler app.use(function (err, req, res, next) {