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

docs(install): update tutorial #162

Merged
merged 1 commit into from
May 17, 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
25 changes: 24 additions & 1 deletion docs/install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ $ yarn

:::

### 启动 RSSHub
### 启动

在 `RSSHub` 文件夹中运行下面的命令就可以启动。

Expand All @@ -97,6 +97,14 @@ $ npm start

在浏览器中打开 [http://127.0.0.1:1200/](http://127.0.0.1:1200/),enjoy it! ✅

### 更新

在 `RSSHub` 文件夹中运行下面的命令就从 github 仓库拉取最新版本。

```bash
$ git pull
```

### 添加配置

可以通过修改 `config.js` 或者设置环境变量来配置 RSSHub。
Expand Down Expand Up @@ -197,6 +205,21 @@ $ docker run -d --name rsshub -p 1200:1200 diygod/rsshub
$ docker stop rsshub
```

### 更新

您可以使用下面的命令来更新镜像。

```bash
# 先关闭 rsshub
$ docker stop rsshub

# 删除现有的容器
$ docker rm rsshub

# 下载最新版的 rsshub 镜像
$ docker pull diygod/rsshub
```

### 添加配置

配置运行在 docker 中的 RSSHub,最便利的方法是使用环境变量。
Expand Down