update README.md

This commit is contained in:
deepzz0
2016-12-25 12:00:18 +08:00
parent 6cdb3e2f9b
commit 5f072b17cb
2 changed files with 6 additions and 9 deletions

View File

@@ -10,9 +10,9 @@ go: # 只构建最新版本
services: # docker环境
- docker
# branches: # 限定项目分支
# only:
# - master
branches: # 限定项目分支
only:
- master
before_install:
- curl https://glide.sh/get | sh # 安装glide包管理
@@ -23,7 +23,7 @@ script:
- docker build -t registry.cn-hangzhou.aliyuncs.com/deepzz/eiblog . # 构建镜像
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
- if [ "$TRAVIS_BRANCH" =~ ^v[0-9](\.[0-9])+.*$ ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" registry.cn-hangzhou.aliyuncs.com;
docker push registry.cn-hangzhou.aliyuncs.com/deepzz/eiblog;
fi

View File

@@ -67,12 +67,9 @@
好了,说了那么多,吹了那么多,我们实际来动手搭建一个`Eiblog`吧。
### 安装
> 这部分正在规划,请稍等。
1、`Eiblog`提供多个平台的压缩包下载,可到[Eiblog release](https://github.com/eiblog/eiblog/releases)选择相应版本和平台下载。也可通过:
``` sh
$ curl -L https://github.com/eiblog/eiblog/archive/v0.1.0.zip`uname -s`-`uname -m`
$ curl -L https://github.com/eiblog/eiblog/releases/download/v0.1.0/eiblog-v0.1.0.`uname -s | tr '[A-Z]' '[a-z]'`-amd64.tar.gz > eiblog-v0.1.0.`uname -s | tr '[A-Z]' '[a-z]'`-amd64.tar.gz
```
2、如果有幸你也是`Gopher`,相信你会亲自动手,你可以通过:
@@ -83,7 +80,7 @@ $ go get https://github.com/eiblog/eiblog
3、如果你对`docker`技术也有研究的话,你也可以通过`docker`来安装:
``` sh
$ docker pull
$ docker pull registry.cn-hangzhou.aliyuncs.com/deepzz/eiblog
```
镜像内部只提供了`eiblog`的二进制文件,因为其它内容定制化的需求过高。所以需要将`conf`、`static`、`views`目录映射出来,后面会具体说到。