Docs: Clarify example of using environment variables for port number

print-window-tiddler
Jermolene 2018-03-29 12:34:50 +01:00
rodzic f4fd5e76f8
commit 633208958c
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -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
```