Answer the question
In order to leave comments, you need to log in
How to organize the deployment (deploy) of the project?
Hello!
I ask for advice from you experienced developers =)
Situation: There is a project with standard settings, which is being developed by a group of developers. Hosting settings are different. Project configuration files change during development.
Question: How to organize an automatic update of the project on the hosting so that you do not have to reconfigure the project with each update and so that changes in the configuration files are automatically applied along with the update?
PS The team uses version control systems for collaboration.
Answer the question
In order to leave comments, you need to log in
Lots of options.
1. make settings for each usage group (production, testing, dev, ...) and simply define in the code which settings block to use depending on the environment.
It is not always advisable to disclose data (about passwords, logins and other settings that are used in production) to those who work with the code in other environments (dev, testing, ...) Therefore:
2. store settings for production and testing separately (you can second repository) and when deploying, download data from there.
3. move the settings outside the project, as a result, the settings remain, but the project is updated. Updating the settings on each environment is a separate task. When automating deployment, you need a set of settings for each environment, ideally the project code itself should not know anything about this and should start correctly with any incoming configs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question