fix: some config and readme
This commit is contained in:
parent
489134fcb9
commit
cd72a28bb7
|
@ -20,3 +20,4 @@ config.yaml
|
||||||
go.sum
|
go.sum
|
||||||
__debug_bin
|
__debug_bin
|
||||||
latest_log
|
latest_log
|
||||||
|
potato
|
25
README.md
25
README.md
|
@ -1,7 +1,7 @@
|
||||||
<!--
|
<!--
|
||||||
* @Date: 2021-03-21 19:54:57
|
* @Date: 2021-03-21 19:54:57
|
||||||
* @LastEditors: viletyy
|
* @LastEditors: viletyy
|
||||||
* @LastEditTime: 2021-06-10 15:39:28
|
* @LastEditTime: 2021-06-15 00:19:24
|
||||||
* @FilePath: /potato/README.md
|
* @FilePath: /potato/README.md
|
||||||
-->
|
-->
|
||||||
# Potato
|
# Potato
|
||||||
|
@ -51,13 +51,34 @@ potato
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
这个项目使用 [go](https://golang.org/) 和 [swag](https://github.com/swaggo/swag)。请确保你本地安装了它们。
|
这个项目使用 [go](https://golang.org/) 、 [swag](https://github.com/swaggo/swag)、[docker](https://www.docker.com/)[下载地址](https://www.docker.com/products/docker-desktop)、[jaeger](https://www.jaegertracing.io/)。请确保你本地安装了它们。
|
||||||
|
|
||||||
|
go
|
||||||
```sh
|
```sh
|
||||||
$ tar -C /usr/local -xzf go1.4.linux-amd64.tar.gz
|
$ tar -C /usr/local -xzf go1.4.linux-amd64.tar.gz
|
||||||
$ export PATH=$PATH:/usr/local/go/bin
|
$ export PATH=$PATH:/usr/local/go/bin
|
||||||
```
|
```
|
||||||
|
|
||||||
|
swag安装
|
||||||
|
```sh
|
||||||
|
$ go get -u github.com/swaggo/swag/cmd/swag
|
||||||
|
$ mv $GOPATH/bin/swag /usr/local/go/bin
|
||||||
|
```
|
||||||
|
|
||||||
|
jaeger
|
||||||
|
```sh
|
||||||
|
docker run -d --name jaeger \
|
||||||
|
-e COLLECTOR_ZIPKIN_HTTP_PORT=9411 \
|
||||||
|
-p 5775:5775/udp \
|
||||||
|
-p 6831:6831/udp \
|
||||||
|
-p 6832:6832/udp \
|
||||||
|
-p 5778:5778 \
|
||||||
|
-p 16686:16686 \
|
||||||
|
-p 14268:14268 \
|
||||||
|
-p 9411:9411 \
|
||||||
|
jaegertracing/all-in-one:1.16
|
||||||
|
```
|
||||||
|
|
||||||
## 使用说明
|
## 使用说明
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
app:
|
app:
|
||||||
name: 'potato'
|
name: 'potato'
|
||||||
version: '1.0.0'
|
version: '1.0.0'
|
||||||
|
domain: '127.0.0.1'
|
||||||
jwt_secret: 'viletyy'
|
jwt_secret: 'viletyy'
|
||||||
jwt_expire: '7200'
|
jwt_expire: '7200'
|
||||||
run_mode: 'debug'
|
run_mode: 'debug'
|
||||||
|
@ -14,6 +15,7 @@ server:
|
||||||
http_port: 8000
|
http_port: 8000
|
||||||
read_timeout: 60
|
read_timeout: 60
|
||||||
write_timeout: 60
|
write_timeout: 60
|
||||||
|
tracer_host_port: '127.0.0.1:6831'
|
||||||
email:
|
email:
|
||||||
host: 'smtp.163.com'
|
host: 'smtp.163.com'
|
||||||
port: 465
|
port: 465
|
||||||
|
|
Loading…
Reference in New Issue