You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/node/hooks/express.js
+11-12Lines changed: 11 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -19,20 +19,20 @@ exports.createServer = function () {
19
19
exports.restartServer();
20
20
21
21
console.log(`You can access your Etherpad instance at http://${settings.ip}:${settings.port}/`);
22
-
if(!_.isEmpty(settings.users)){
22
+
if(!_.isEmpty(settings.users)){
23
23
console.log(`The plugin admin page is at http://${settings.ip}:${settings.port}/admin/plugins`);
24
-
}
25
-
else{
24
+
}else{
26
25
console.warn("Admin username and password not set in settings.json. To access admin please uncomment and edit 'users' in settings.json");
27
26
}
27
+
28
28
varenv=process.env.NODE_ENV||'development';
29
-
if(env!=='production'){
29
+
30
+
if(env!=='production'){
30
31
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");
31
32
}
32
33
}
33
34
34
35
exports.restartServer=function(){
35
-
36
36
if(server){
37
37
console.log("Restarting express server");
38
38
server.close();
@@ -41,7 +41,6 @@ exports.restartServer = function () {
41
41
varapp=express();// New syntax for express v3
42
42
43
43
if(settings.ssl){
44
-
45
44
console.log("SSL -- enabled");
46
45
console.log(`SSL -- server key file: ${settings.ssl.key}`);
0 commit comments