Blame view

README.md 968 Bytes
chunhua.zhang authored
1 2 3 4 5 6 7
# 测试环境 java 工程自动发布



## 原理

`git`中拉取配置,然后替换本地工程的配置,最后打包为`war`,并且推送到目的服务器发布。
chunhua.zhang authored
8 9

# 修改配置:
chunhua.zhang authored
10
chunhua.zhang authored
11 12 13
 [http://git.yoho.cn/yohoops/auto_deploy_test/tree/master/autoconfig](http://git.yoho.cn/yohoops/auto_deploy_test/tree/master/autoconfig)

chunhua.zhang authored
14 15
# 目录说明
chunhua.zhang authored
16 17 18 19
- `http://git.yoho.cn/yohoops/auto_deploy_test/tree/master/scripts/iptable`  各个环境需要部署到那些机器上
- `http://git.yoho.cn/yohoops/auto_deploy_test/tree/master/autoconfig`   各个环境的配置

chunhua.zhang authored
20
 
chunhua.zhang authored
21 22

chunhua.zhang authored
23 24
## 如何手动发布
chunhua.zhang authored
25
```bash
chunhua.zhang authored
26
 ./deploy.sh -gyoho30 -p22 -bmaster -ayohobuy-resources -eDeploy -saws
chunhua.zhang authored
27 28
```
chunhua.zhang authored
29 30
##  如何回退
chunhua.zhang authored
31
```bash
chunhua.zhang authored
32 33 34
 
./deploy.sh   -eRollback -ayoho-users -ryoho-users.zip.2016_11_17_10_15 -sqcloud
./deploy.sh   -eRollback -ayoho-users -ryoho-users.zip.2016_11_17_10_18 -saws
chunhua.zhang authored
35 36
```
chunhua.zhang authored
37
 发布哪个模块: `-a`
chunhua.zhang authored
38
chunhua.zhang authored
39
 发布哪个环境: `-s`:  
chunhua.zhang authored
40 41 42
- aws 
- qcloud 
    - qcloud_gray