I would like to set up an environment, where I push my code to a git and the code is deployed on the server right away. And to be honest I was wondering how that would work out? Let's say I have an Java project using Maven and some JSF included. Now I could build this to a WAR
-File using Maven and push it into my tomcat, then restart the tomcat and it got deployed.
How does that work when it is pushed into a git? Is there some kind of module in the git included, where I can configure a directory where it should be build & pushed afterwards? Or is it just a certain branch that is pushed right away?