gitflow - Git服务器部署方案与团队开发流程问题请教
仅有的幸福
仅有的幸福 2017-05-02 09:24:01
0
2
506

有个疑问一直困扰我:

我们在生产环境(a)与测试环境(b)上面都安装了git服务。 我们在开发时,用了b上面的develop分支(本地一次提交会提交到b的远程develop,然后自动同步到b的web服务器中)。要上生产环境是,我们在本地从develop合并到master分支( 本地master添加一个remote源,然后git push production(remote源名称) master)。 这样的方式对于因环境不同而配置文件不断变更时,非常头疼。 请问大家是如何处理git工作流程的呢?

仅有的幸福
仅有的幸福

reply all(2)
Ty80

For details on the team’s continuous development in development, testing, simulation, and production environments, please refer to the technical team code management and deployment

It is also recommended to use the online deployment system WALLI developed by our team. Learn more on the homepage.

曾经蜡笔没有小新

Don’t put the configuration file directly in the repository. You should store a copy, such as db.config.example. When deploying the environment, you will manually copy a db.config and modify the content, and local development will put db.config in the ignore list. .

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!