I am going to start a new project and I am going to have an Apache with two domains (one for testing, another for stable).
I am probably going to use Git, so let's say I use Git as version control. I want to synchronize the testing subdomain with the repository - that means, when someone commits to the eventual Git server, the testing subdomain is going to run the latest commit.
What is the right way to achieve this? Thanks!