mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-02 08:06:17 +00:00
3827feee3f
The colon (:) separator needs to be replaced with an equals sign (=). This kept throwing me off while I was trying to set this up.
26 lines
822 B
Plaintext
26 lines
822 B
Plaintext
caption: port
|
|
created: 20180630180552254
|
|
modified: 20180702155017130
|
|
tags: [[WebServer Parameters]]
|
|
title: WebServer Parameter: port
|
|
type: text/vnd.tiddlywiki
|
|
|
|
The [[web server configuration parameter|WebServer Parameters]] ''port'' specifies the TCP port on which the server will listen for connections. The default value is `8080`.
|
|
|
|
The ''port'' parameter accepts two types of value:
|
|
|
|
* Numerical values are interpreted as a decimal port number
|
|
* Non-numeric values are interpreted as an environment variable from which the port should be read
|
|
|
|
This example configures the server to listen on port 8090:
|
|
|
|
```
|
|
tiddlywiki mywikifolder --listen port=8090
|
|
```
|
|
|
|
This example configures the server to listen on the port specified in the environment variable `THE_PORT`:
|
|
|
|
```
|
|
tiddlywiki mywikifolder --listen port=THE_PORT
|
|
```
|