How can I deploy my code (node.js) on my local network to multiple servers (in my case I am using raspberry pis) at once via a list of hostnames?
Asked
Active
Viewed 19 times
0
-
You will have to put a load balancer in one of your servers. http://stackoverflow.com/questions/13609196/load-balancing-with-node-js-using-http-proxy – Gaël Barbin Apr 22 '15 at 06:01
-
im not sure if a load balancer is the right thing. i want my code to be on multiple servers deployed at once – Allen Apr 22 '15 at 06:05
-
why? What is your goal? – Gaël Barbin Apr 22 '15 at 06:06
-
i basically have sensors attached to the Pi's that will be placed throughout a physical area. They all share the same code. So instead of git pulling from each device, I want to deploy to all at once – Allen Apr 22 '15 at 06:14
-
rsync could do that. With node, there is that: https://github.com/mattes/autorsync – Gaël Barbin Apr 22 '15 at 07:18
-
thanks gael, but this seems specifically for syncing changes between a local and remote directory. I would like to deploy to multiple directories with a given command. also, hte last commit was 3 years ago, not sure if I'm very confident! – Allen Apr 22 '15 at 08:05