small fixes

This commit is contained in:
Álvaro Manera 2020-12-18 15:22:26 +01:00
parent 27eb00223d
commit 2e1a3c7fb1
2 changed files with 2 additions and 2 deletions

2
app.js
View File

@ -64,7 +64,7 @@ const availableEnvironments = {
};
if (!availableEnvironments[process.env.NODE_ENV]) {
logger.fatal(new Error(`Invalid environment argument, valid ones: ${Object.keys(availableEnvironments).join(', ')}`));
logger.fatal(new Error(`Invalid environment ${process.env.NODE_ENV} argument, valid ones: ${Object.keys(availableEnvironments).join(', ')}`));
process.exit(1);
}

View File

@ -1,5 +1,5 @@
var config = {
environment: process.env.NODE_ENV,
environment: process.env.CARTO_WINDSHAFT_NODE_ENV,
port: 8181,
host: null, // null on purpouse so it listens to whatever address docker assigns
// Size of the threadpool which can be used to run user code and get notified in the loop thread