1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Docs: Clarify example of using environment variables for port number

This commit is contained in:
Jermolene 2018-03-29 12:34:50 +01:00
parent f4fd5e76f8
commit 633208958c

View File

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