L
L
LinuxGod2020-02-25 11:06:43
Continuous Deployment
LinuxGod, 2020-02-25 11:06:43

How to create a code unload queue in production?

Good day, please tell me how to send code to production without restarting the service?
There is a certain release that works stably and everything is generally good, but how to automate the code so that if a number of patches are made to the code, this would not affect the performance of the service at all? In other words, I uploaded the code and all changes in both the front-end and back-end took effect within 3-5 seconds.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Z
zorca, 2020-02-25
@zorca

When deploying, a new release folder is created, in which everything is installed and rolled, upon completion, a symlink to the new release is created. This is exactly how Deployer works .

R
Robur, 2020-02-25
@Robur

The fron is usually unloaded in its entirety in these few seconds, there is not much to do here.
For back - it all depends on how you deploy, there are a lot of options.
For example, you can deploy as described above - through symlinks, or through docker containers (for example, dokku can zero-downtime deploy)

I
Ivan Shumov, 2020-02-25
@inoise

The question is rather vague, but it might be worth reading about Blue-green deployment and Canary Release

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question