Home  >  Article  >  Backend Development  >  php使用git部署环境

php使用git部署环境

WBOY
WBOYOriginal
2016-06-06 20:10:411641browse

情况如下

本机环境
自己开发使用

开发环境
局域网内的开发环境,例如自己本机环境写好了api接口,push给开发环境,供其他客户端开发人员调用

测试环境
定期从开发环境拉出一个版本给测试人员测试

生产环境
通过测试环境的代码打上tag发布

问下各位,像我上面描述的,使用git来实现自动部署,有什么好的方案哈?

回复内容:

情况如下

本机环境
自己开发使用

开发环境
局域网内的开发环境,例如自己本机环境写好了api接口,push给开发环境,供其他客户端开发人员调用

测试环境
定期从开发环境拉出一个版本给测试人员测试

生产环境
通过测试环境的代码打上tag发布

问下各位,像我上面描述的,使用git来实现自动部署,有什么好的方案哈?

难道不是git hook?

测试代码肯定是从生产拉取得

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn