From bb40aa00bec361cef475791af338e3d0db68c3ae Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 3 Apr 2018 10:59:10 +0100 Subject: [PATCH] Update express.js --- src/node/hooks/express.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/node/hooks/express.js b/src/node/hooks/express.js index 17910e4b..48dcf56c 100644 --- a/src/node/hooks/express.js +++ b/src/node/hooks/express.js @@ -25,6 +25,10 @@ exports.createServer = function () { else{ console.warn("Admin username and password not set in settings.json. To access admin please uncomment and edit 'users' in settings.json"); } + var env = process.env.NODE_ENV || 'development'; + if(env !== 'production'){ + console.warn("Etherpad is running in Development mode. This mode is slower for users and less secure than production mode. You should set the NODE_ENV environment variable to production by using: export NODE_ENV=production"); + } } exports.restartServer = function () {