Correct links to the main mastodon repo (master --> main) (#1173)
* Fix links to mastodon repo * Use preferred language
This commit is contained in:
parent
5e82c71542
commit
59aa5f047a
16 changed files with 47 additions and 47 deletions
|
@ -259,7 +259,7 @@ Redis被广泛使用于应用,但是某些用途比其他用途更重要。主
|
|||
为了减轻你的Postgresql服务器负担,你可以使用热流复制(hot streaming replication)(只读副本(read replica))。有关示例,请参见[该指南](https://cloud.google.com/community/tutorials/setting-up-postgres-hot-standby)。你可以给以下Mastodon用途使用副本(replica):
|
||||
|
||||
* streaming API 服务器无需写入,因此你可以将其直接使用副本(replica)。但由于 streaming API 服务器不经常查询数据库,这样的优化影响很小。
|
||||
* 使用 Makara 驱动 web 与 sidekiq 进程,这样可以实现从主(master)数据库写,从副本(replica)读。让我们开始吧。
|
||||
* 使用 Makara 驱动 web 与 sidekiq 进程,这样可以实现从主(primary)数据库写,从副本(replica)读。让我们开始吧。
|
||||
|
||||
编辑 `config/database.yml` 文件,将 `production` 替换为如下内容:
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ RAILS_ENV=production bin/tootctl help
|
|||
|
||||
## 基础命令
|
||||
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/master/lib/cli.rb" caption="lib/cli.rb" >}}
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/lib/cli.rb" caption="lib/cli.rb" >}}
|
||||
|
||||
### `tootctl self-destruct` {#self-destruct}
|
||||
|
||||
|
@ -51,7 +51,7 @@ RAILS_ENV=production bin/tootctl help
|
|||
|
||||
## 帐户相关命令 {#accounts}
|
||||
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/master/lib/mastodon/accounts_cli.rb" caption="lib/mastodon/accounts_cli.rb" >}}
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/lib/mastodon/accounts_cli.rb" caption="lib/mastodon/accounts_cli.rb" >}}
|
||||
|
||||
### `tootctl accounts rotate` {#accounts-rotate}
|
||||
|
||||
|
@ -208,7 +208,7 @@ RAILS_ENV=production bin/tootctl help
|
|||
|
||||
## 缓存相关命令 {#cache}
|
||||
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/master/lib/mastodon/cache_cli.rb" caption="lib/mastodon/cache_cli.rb" >}}
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/lib/mastodon/cache_cli.rb" caption="lib/mastodon/cache_cli.rb" >}}
|
||||
|
||||
### `tootctl cache clear` {#cache-clear}
|
||||
|
||||
|
@ -232,7 +232,7 @@ RAILS_ENV=production bin/tootctl help
|
|||
|
||||
## 域名相关命令 {#domains}
|
||||
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/master/lib/mastodon/domains_cli.rb" caption="lib/mastodon/domains_cli.rb" >}}
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/lib/mastodon/domains_cli.rb" caption="lib/mastodon/domains_cli.rb" >}}
|
||||
|
||||
### `tootctl domains purge` {#domains-purge}
|
||||
|
||||
|
@ -269,7 +269,7 @@ RAILS_ENV=production bin/tootctl help
|
|||
|
||||
## Emoji相关命令 {#emoji}
|
||||
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/master/lib/mastodon/emoji_cli.rb" caption="lib/mastodon/emoji_cli.rb" >}}
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/lib/mastodon/emoji_cli.rb" caption="lib/mastodon/emoji_cli.rb" >}}
|
||||
|
||||
### `tootctl emoji import` {#emoji-import}
|
||||
|
||||
|
@ -301,7 +301,7 @@ RAILS_ENV=production bin/tootctl help
|
|||
|
||||
## 时间流(Feeds)相关命令 {#feeds}
|
||||
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/master/lib/mastodon/feeds_cli.rb" caption="lib/mastodon/feeds_cli.rb" >}}
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/lib/mastodon/feeds_cli.rb" caption="lib/mastodon/feeds_cli.rb" >}}
|
||||
|
||||
### `tootctl feeds build` {#feeds-build}
|
||||
|
||||
|
@ -327,7 +327,7 @@ RAILS_ENV=production bin/tootctl help
|
|||
|
||||
## 媒体相关命令 {#media}
|
||||
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/master/lib/mastodon/media_cli.rb" caption="lib/mastodon/media_cli.rb" >}}
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/lib/mastodon/media_cli.rb" caption="lib/mastodon/media_cli.rb" >}}
|
||||
|
||||
### `tootctl media remove` {#media-remove}
|
||||
|
||||
|
@ -390,7 +390,7 @@ RAILS_ENV=production bin/tootctl help
|
|||
|
||||
## 预览卡片(Preview Cards)相关命令 {#preview_cards}
|
||||
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/master/lib/mastodon/preview_cards_cli.rb" caption="lib/mastodon/preview_cards_cli.rb" >}}
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/lib/mastodon/preview_cards_cli.rb" caption="lib/mastodon/preview_cards_cli.rb" >}}
|
||||
|
||||
### `tootctl preview_cards remove` {#preview_cards-remove}
|
||||
|
||||
|
@ -409,7 +409,7 @@ RAILS_ENV=production bin/tootctl help
|
|||
|
||||
## 搜索相关命令 {#search}
|
||||
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/master/lib/mastodon/search_cli.rb" caption="lib/mastodon/search_cli.rb" >}}
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/lib/mastodon/search_cli.rb" caption="lib/mastodon/search_cli.rb" >}}
|
||||
|
||||
### `tootctl search deploy` {#search-deploy}
|
||||
|
||||
|
@ -425,7 +425,7 @@ RAILS_ENV=production bin/tootctl help
|
|||
|
||||
## 站点设定相关命令 {#settings}
|
||||
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/master/lib/mastodon/settings_cli.rb" caption="lib/mastodon/settings_cli.rb" >}}
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/lib/mastodon/settings_cli.rb" caption="lib/mastodon/settings_cli.rb" >}}
|
||||
|
||||
### `tootctl settings registrations open` {#settings-registrations-open}
|
||||
|
||||
|
@ -443,7 +443,7 @@ RAILS_ENV=production bin/tootctl help
|
|||
|
||||
## 嘟文相关命令 {#statuses}
|
||||
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/master/lib/mastodon/statuses_cli.rb" caption="lib/mastodon/statuses_cli.rb" >}}
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/lib/mastodon/statuses_cli.rb" caption="lib/mastodon/statuses_cli.rb" >}}
|
||||
|
||||
### `tootctl statuses remove` {#statuses-remove}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ menu:
|
|||
---
|
||||
|
||||
{{< hint style="info" >}}
|
||||
当一个新的Mastodon版本释出后,它将出现在[GitHub releases页面](https://github.com/mastodon/mastodon/releases)。请注意:运行来自`master`分支的未释出代码,虽然可以进行,但不推荐这样做。
|
||||
当一个新的Mastodon版本释出后,它将出现在[GitHub releases页面](https://github.com/mastodon/mastodon/releases)。请注意:运行来自`main`分支的未释出代码,虽然可以进行,但不推荐这样做。
|
||||
{{< /hint >}}
|
||||
|
||||
Mastodon版本与git tags一致。在尝试升级之前,请至[GitHub releases页面](https://github.com/mastodon/mastodon/releases)查找所需版本。该页面包含了一个**更新日专**,其中描述你需要了解的所有差异,以及**特定的升级指令**。
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue