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