# 测试环境 java 工程自动发布 ## 原理 从`git`中拉取配置,然后替换本地工程的配置,最后打包为`war`,并且推送到目的服务器发布。 # 修改配置: [http://git.yoho.cn/yohoops/auto_deploy_test/tree/master/autoconfig](http://git.yoho.cn/yohoops/auto_deploy_test/tree/master/autoconfig) # 目录说明 - `http://git.yoho.cn/yohoops/auto_deploy_test/tree/master/scripts/iptable` 各个环境需要部署到那些机器上 - `http://git.yoho.cn/yohoops/auto_deploy_test/tree/master/autoconfig` 各个环境的配置 ## 如何手动发布 ```bash ./deploy.sh -gyoho30 -p22 -bmaster -ayohobuy-resources -eDeploy -saws ``` ## 如何回退 ```bash ./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 ``` 发布哪个模块: `-a` 发布哪个环境: `-s`: - aws - qcloud - qcloud_gray