Scaling application horizontally accross servers

I have 11 servers... all running nginx + php7 and one load balancer (nginx as well)... how do I keep the code synced across all servers... I dont want to go in and save in each and every server the same code, what approach would be the "standard" for this?

loadbalancer.server.com -> app1.server.com/app2.server.com/app3.server.com/app4.server.com, etc...
Mario BernheimCTOAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve BinkCommented:
We use GitHub for this.  Our development branches create PRs to our master, and deployment consists of pulling the most recent stable master (based on tags) followed by database updates, if necessary.  We have some automation in place to trigger the pull, which means our admin needs to type just one command into a shell to update all instances.
Shalom CarmelCTOCommented:
* remotely executed script that runs git pull.
* Ansible/Jenkins/Chef/Ruby deployment.
* Using AWS capabilities: create a new AMI, push to the autoscale group, refresh group.
girionisCommented:
We have a similar topology (8 servers, distributed over 6 physical machines) and when we need to deploy we run a Jenkins script that copies and deploys the web app on all servers.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mario BernheimCTOAuthor Commented:
thank you, went with this!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.