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?
Below mentioned link might be useful. Please check https://medium.com/@francoisromain/vps-deploy-with-git-fea605f1303b
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.