I have a nodejs web app, I deploy this app to 3 servers to serve many requests from user. The problem is when everytime I update source code, I have to remote to every server to pull code from Bitbucket and restart the server. Is there any way to update one time for all servers?, thanks. How facebook do when they have thousand of servers?
Asked
Active
Viewed 143 times
0
-
[Ansible](http://www.ansible.com/), [Chef](https://www.chef.io/chef/), [Puppet](https://puppetlabs.com/) or trivial shell script will do the trick for you. – Yaroslav Admin Oct 08 '15 at 16:44
1 Answers
0
I would recommend removing git access from your servers. Instead, use a build tool like grunt or gulp to create a package. Then deploy it with something like Ansible (super simple, runs over ssh without any agents), or Chef, etc.

weiyin
- 6,819
- 4
- 47
- 58