1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-24 22:33:16 +00:00

Update chinese help texts for Server command (#3197)

* support environment variables for specifying port number
This commit is contained in:
Bram Chen 2018-04-03 02:44:36 +08:00 committed by Jeremy Ruston
parent 43b4ded2cc
commit 52319ee88a
2 changed files with 12 additions and 4 deletions

View File

@ -11,7 +11,7 @@ description: 提供一个 HTTP 服务器介面到 TiddlyWiki
参数说明:
* ''port'' - 服务的埠号 (默认为 "8080")
* ''port'' - 要侦听的埠号;非数值会被解译为一个系统环境变数,从其中提取埠号 (默认为 "8080")
* ''roottiddler'' - 服务的基本条目 (默认为 "$:/core/save/all")
* ''rendertype'' - 呈现的基本条目内容类型 (默认为 "text/plain")
* ''servetype'' - 服务的基本条目内容类型(默认为 "text/html")
@ -34,4 +34,8 @@ description: 提供一个 HTTP 服务器介面到 TiddlyWiki
--server 8080 $:/core/save/all text/plain text/html "" "" 192.168.0.245
```
同时执行多个 TiddlyWiki 服务,须分别指定不同的埠号。
同时执行多个 TiddlyWiki 服务,须分别指定不同的埠号。使用环境变数,有助于将埠号传递给 Node.js 进程。本示例引用一个名为 "MY_PORT_NUMBER" 的环境变数:
```
--server MY_PORT_NUMBER $:/core/save/all text/plain text/html MyUserName passw0rd
```

View File

@ -11,7 +11,7 @@ description: 提供一個 HTTP 伺服器介面到 TiddlyWiki
參數說明:
* ''port'' - 服務的埠號 (預設為 "8080")
* ''port'' - 要偵聽的埠號;非數值會被解譯為一個系統環境變數,從其中提取埠號 (預設值為 "8080")
* ''roottiddler'' - 服務的基本條目 (預設為 "$:/core/save/all")
* ''rendertype'' - 呈現的基本條目內容類型 (預設為 "text/plain")
* ''servetype'' - 服務的基本條目內容類型(預設為 "text/html")
@ -34,4 +34,8 @@ description: 提供一個 HTTP 伺服器介面到 TiddlyWiki
--server 8080 $:/core/save/all text/plain text/html "" "" 192.168.0.245
```
同時執行多個 TiddlyWiki 伺服器,須分別指定不同的埠號。
同時執行多個 TiddlyWiki 伺服器,須分別指定不同的埠號。使用環境變數,有助於將埠號傳遞給 Node.js 進程。本示例引用一個名為 "MY_PORT_NUMBER" 的環境變數:
```
--server MY_PORT_NUMBER $:/core/save/all text/plain text/html MyUserName passw0rd
```