Skip to content

Commit

Permalink
docs(readme): update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
indes committed Jun 28, 2019
1 parent b7a1f5e commit ab441bc
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,24 @@ DEMO: https://t.me/rssflowbot

## 安装

**由于 GoReleaser 不支持 Cgo,如果要使用 SQLite 做为数据库,请下载源码自行编译。**

### 源码安装
### Docker 部署

```shell
git clone https://github.com/indes/flowerss-bot && cd flowerss-bot
make build
./flowerss-bot
docker run -d indes/flowerss-bot -k <bot token> -tk <telegraph token 可省略>
```

### 下载二进制

**该版本不支持 SQLite**
**由于 GoReleaser 不支持 Cgo,如果要使用 SQLite 做为数据库,请下载源码自行编译。**

[Releases](https://github.com/indes/flowerss-bot/releases) 页面下载对应的版本。

### 源码安装

### Docker 部署

请首先确保你安装有 docker 和 docker-compose
```
```shell
git clone https://github.com/indes/flowerss-bot && cd flowerss-bot
```
修改 docker-compose.yml 设置为你自己的配置,拷贝`config.yml.sample`到你自己的数据目录并修改对应设置
```
docker-compose build
docker-compose up -d
make build
./flowerss-bot
```

## 配置
Expand Down Expand Up @@ -78,7 +69,7 @@ mysql:

### Telegraph Token 申请

```
```shell
curl https://api.telegra.ph/createAccount?short_name=flowerss&author_name=flowerss&author_url=https://github.com/indes/flowerss-bot
```
返回的 JSON 中 access_token 字段值即为 Telegraph Token
Expand Down

0 comments on commit ab441bc

Please sign in to comment.