Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
brookshi committed Jul 29, 2018
1 parent 5b6e7bc commit a704ff5
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 11 deletions.
3 changes: 3 additions & 0 deletions client/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Hitchhiker API</title>
<script>
window.hkr_version = 'v0.14';
</script>
</head>

<body>
Expand Down
19 changes: 19 additions & 0 deletions cn/change_log.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
#### 0.14 2018-07-29

**Features:**

* \#95 支持接口文档功能
* \#230 改成编辑器性能
* \#231 Schedule里的setting选项增加:1. 完成后或当失败后发送邮件, 2. 仅发送失败case或发送所有case。去掉环境变量里的 `HITCHHIKER_SCHEDULE_MAILFORFAIL`
注意:这是一个破坏性改动,如果以前有设置过环境变量:`HITCHHIKER_SCHEDULE_MAILFORFAIL`,需要给具体的schedule重新设置。以前是所有统一设置,现在是每个schedule可以自己设置自己的。
* \#232 给Parameters里的OneByOne增加识别数组的功能,以前只支持对象,现在支持把[{a: 1, b:2}, {a:3, b:4}]识别成两个case。
* \#234 支持导出schedule结果到cls。

**Bugs:**

* \#214 开启密码加密后,刷新浏览器后丢掉session
* \#216 项目邀请邮件发送失败
* \#219 URL传参值错误
* \#226 URL encode时对参数中+号的encode结果不正确,预期是%2B,实际将+号作为URI中的空格编码为%20


#### 0.13 2018-06-15

**Features:**
Expand Down
2 changes: 1 addition & 1 deletion cn/installation/StepByStep.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
> 创建DB的脚本: CREATE DATABASE IF NOT EXISTS \`hitchhiker-prod\` default charset utf8 COLLATE utf8_general_ci;
> 修改变量需要把`max_allowed_packet=200M`加到 my.ini 文件[mysqld] Section下,具体参考:[change max_allowed_packet](https://stackoverflow.com/questions/8062496/how-to-change-max-allowed-packet-size)
1. 下载安装包 [https://github.com/brookshi/Hitchhiker/releases/download/v0.13/Hitchhiker.zip](https://github.com/brookshi/Hitchhiker/releases/download/v0.13/Hitchhiker.zip);
1. 下载安装包 [https://github.com/brookshi/Hitchhiker/releases/download/v0.14/Hitchhiker.zip](https://github.com/brookshi/Hitchhiker/releases/download/v0.14/Hitchhiker.zip);
下载速度慢的可以去阿里云下载 http://hitchhiker.oss-cn-hongkong.aliyuncs.com/Hitchhiker.zip

2. 解压并在build目录下(即setup.js的目录)执行命令`node setup.js`(windows), `sudo node setup.js`(linux);
Expand Down
10 changes: 5 additions & 5 deletions cn/installation/docker.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
docker使用的是docker-compose来安装,会自动下载两个image:hitchhiker和mysql,基本上按命令执行即可,如果需要配置,可以参考:[配置文件](configuration.md), 环境变量可以写到docker-compose.yml里

国内用户请使用阿里云的镜像 hitchhiker-cn:registry.cn-hangzhou.aliyuncs.com/brook/hitchhiker-cn:v0.13
国内用户请使用阿里云的镜像 hitchhiker-cn:registry.cn-hangzhou.aliyuncs.com/brook/hitchhiker-cn:v0.14

#### 参考下面命令,一步一步部署 (基于ubuntu,其他系统类似):
``` bash
Expand All @@ -21,7 +21,7 @@ curl -O https://raw.githubusercontent.com/brookshi/Hitchhiker/release/deploy/doc

# 编辑 docker-compose.yml, 把localhost换成你机器的局域网ip,如果是只有本机一个人用那就localhost也可以
sudo vim docker-compose.yml
# 修改完成后,保存退出 (国内用户改image地址:registry.cn-hangzhou.aliyuncs.com/brook/hitchhiker-cn:v0.13, 以及写入环境变量配置hitchhiker以及mysql)
# 修改完成后,保存退出 (国内用户改image地址:registry.cn-hangzhou.aliyuncs.com/brook/hitchhiker-cn:v0.14, 以及写入环境变量配置hitchhiker以及mysql)
...

# 执行docker-compose up安装镜像
Expand All @@ -36,7 +36,7 @@ curl http://ip:8080/
version: '2'
services:
hitchhiker:
image: registry.cn-hangzhou.aliyuncs.com/brook/hitchhiker-cn:v0.13
image: registry.cn-hangzhou.aliyuncs.com/brook/hitchhiker-cn:v0.14
container_name: hitchhiker
environment:
- HITCHHIKER_DB_HOST=hitchhiker-mysql
Expand Down Expand Up @@ -69,7 +69,7 @@ services:
version: '2'
services:
hitchhiker:
image: registry.cn-hangzhou.aliyuncs.com/brook/hitchhiker-cn:v0.13
image: registry.cn-hangzhou.aliyuncs.com/brook/hitchhiker-cn:v0.14
container_name: hitchhiker
environment:
- HITCHHIKER_DB_HOST=hitchhiker-mysql
Expand Down Expand Up @@ -100,7 +100,7 @@ services:
version: '2'
services:
hitchhiker:
image: registry.cn-hangzhou.aliyuncs.com/brook/hitchhiker-cn:v0.13
image: registry.cn-hangzhou.aliyuncs.com/brook/hitchhiker-cn:v0.14
container_name: hitchhiker
environment:
- HITCHHIKER_DB_HOST=192.168.0.10
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/hitchhiker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2'
services:
hitchhiker:
image: brookshi/hitchhiker:v0.13
image: brookshi/hitchhiker:v0.14
container_name: hitchhiker
environment:
- HITCHHIKER_DB_HOST=hitchhiker-mysql
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/hitchhiker_and_mysql/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2'
services:
hitchhiker:
image: brookshi/hitchhiker:v0.13
image: brookshi/hitchhiker:v0.14
container_name: hitchhiker
environment:
- HITCHHIKER_DB_HOST=hitchhiker-mysql
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/push_docker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export HITCHHIKER_VERSION="v0.13"
export HITCHHIKER_VERSION="v0.14"
sudo docker pull registry.us-east-1.aliyuncs.com/brook/hitchhiker:$HITCHHIKER_VERSION
sudo docker login --username=brookshi --password=$DOCKER_ID_PWD
sudo docker tag registry.us-east-1.aliyuncs.com/brook/hitchhiker:$HITCHHIKER_VERSION brookshi/hitchhiker:$HITCHHIKER_VERSION
Expand Down
18 changes: 18 additions & 0 deletions en/change_log.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
#### 0.14 2018-07-29

**Features:**

* \#95 Display and download Api document.
* \#230 Improve editor performance.
* \#231 Add config field for sending mail include run results of all request after schedule finished. Remove env variable `HITCHHIKER_SCHEDULE_MAILFORFAIL`.
* \#232 Support to define variable array like `[{a: 1, b:2}, {a:3, b:4}]` in parameters which include all variables' value already.
* \#234 Export schedule result to cls.

**Bugs:**

* \#214 Lose session if opening db password encryption.
* \#216 Cannot send E-Mails for inviting members.
* \#219 URL query string error.
* \#226 URL query string encode `+` to %20.


#### 0.13 2018-06-15

**Features:**
Expand Down
2 changes: 1 addition & 1 deletion en/installation/StepByStep.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Dependence: nodejs 7.60+, recommend use LTS (8.9) and `mysql 5.7+` with json col
> create DB: CREATE DATABASE IF NOT EXISTS \`hitchhiker-prod\` default charset utf8 COLLATE utf8_general_ci;
> change variable: add `max_allowed_packet=200M` under [mysqld] section in /my.conf file, refer to:[change max_allowed_packet](https://stackoverflow.com/questions/8062496/how-to-change-max-allowed-packet-size)
1. Download app package from [https://github.com/brookshi/Hitchhiker/releases/download/v0.13/Hitchhiker.zip](https://github.com/brookshi/Hitchhiker/releases/download/v0.13/Hitchhiker.zip);
1. Download app package from [https://github.com/brookshi/Hitchhiker/releases/download/v0.14/Hitchhiker.zip](https://github.com/brookshi/Hitchhiker/releases/download/v0.14/Hitchhiker.zip);

2. Unzip and run command `node setup.js`(windows), `sudo node setup.js`(linux) in `build` folder;

Expand Down
2 changes: 1 addition & 1 deletion en/installation/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ If you want to use another port, should replace all 8080.
version: '2'
services:
hitchhiker:
image: brookshi/hitchhiker:v0.13
image: brookshi/hitchhiker:v0.14
container_name: hitchhiker
environment:
- HITCHHIKER_DB_HOST=hitchhiker-mysql
Expand Down

0 comments on commit a704ff5

Please sign in to comment.