Update express.js
This commit is contained in:
parent
50bbcb87bb
commit
bb40aa00be
|
@ -25,6 +25,10 @@ exports.createServer = function () {
|
||||||
else{
|
else{
|
||||||
console.warn("Admin username and password not set in settings.json. To access admin please uncomment and edit 'users' in settings.json");
|
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 () {
|
exports.restartServer = function () {
|
||||||
|
|
Loading…
Reference in New Issue