Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: pr#1190 #47

Merged
merged 1 commit into from
Nov 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/Server.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ fastify.listen(3000, '0.0.0.0', (err, address) => {
})
```

假如未设置 `port` (或设为 0),则会自动选择一个随机可用的端口 (之后可通过 `fastify.server.address().port` 获知)。

<a name="route"></a>
#### route
将路由添加到服务器的方法,支持简写。请看[这里](https://github.com/fastify/docs-chinese/blob/master/docs/Routes.md)。
Expand Down