Multiple servers under load balancing, file synchronization when publishing programs, what method does everyone use?
阿神2017-05-16 17:23:26
Use saltstack to put all the files first, and put them into a new directory independent of the directory where production is currently running.
Then update the nginx configuration file in a unified manner. The main modification is to point the root directory to the new directory.
Saltstack’s master call once nginx -s reload for all servers