1
0
mirror of https://dev.s-ul.net/Galexion/MaiMaiDXNet.git synced 2024-11-24 05:00:11 +01:00
This commit is contained in:
Galexion 2023-07-17 02:17:09 -04:00
parent 025a78d824
commit 6e63285a82

View File

@ -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) {