TL;DR: Newbie question: Is there any best practice for updating my servers after having pushed a new commit from my IDE to my git repo?
Hi all,
knowing that there are several great documentations about packaging and deployment, I’m not really sure how my configuration - and steps on rolling out new versions shall look like.
I have…
…a git repo for versioning the whole project. It might happen that I start another one or two really small projects which shall all run on the same server(s) later.
I will have…
…two VMs, a test environment and a production environment (both Linux, Apache). I won’t do any changes on the source-code on these two servers.
I would like to have…
…a nice way to update both servers after I made a new commit.
Of course I could initially do a git clone on both servers while running a git pull each time there is a new commit. But what happens if I want to add another app to the project that was developed / forked / modified to the project? Not really sure if that’s the way things are done…
So is there any best practice I could follow for updating my servers after having pushed a new commit from my IDE to my git repo?
BR