I
I
Ivan ANTIKLAN2015-09-19 19:06:49
Web development
Ivan ANTIKLAN, 2015-09-19 19:06:49

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

2 answer(s)
O
OnYourLips, 2015-09-19
@OnYourLips

Use a deployment tool like capistrano.

O
Oleg Shevelev, 2015-09-19
@mantyr

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 question

Ask a Question

731 491 924 answers to any question