From 633208958c909be5d37c505ee86b378177613efe Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 29 Mar 2018 12:34:50 +0100 Subject: [PATCH] Docs: Clarify example of using environment variables for port number --- core/language/en-GB/Help/server.tid | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/language/en-GB/Help/server.tid b/core/language/en-GB/Help/server.tid index 9795b09c4..427de6161 100644 --- a/core/language/en-GB/Help/server.tid +++ b/core/language/en-GB/Help/server.tid @@ -34,8 +34,9 @@ The username and password can be specified as empty strings if you need to set t --server 8080 $:/core/save/all text/plain text/html "" "" 192.168.0.245 ``` -To run multiple TiddlyWiki servers at the same time you'll need to put each one on a different port. It can be useful to use an environment variable to set the port. This examples listens on the port number specified in the environment variable "PORT": +To run multiple TiddlyWiki servers at the same time you'll need to put each one on a different port. It can be useful to use an environment variable to pass the port number to the Node.js process. This example references an environment variable called "MY_PORT_NUMBER": + ``` ---server PORT +--server MY_PORT_NUMBER $:/core/save/all text/plain text/html MyUserName passw0rd ```