Automated deployment of Grails/Java web application to Tomcat7 from Git -
i saw automated deployment of heroku in this link. , amazing allowed me deploy grails web application directly git repository tomcat.
now wondering can use similar thing deploy grails web application directly vcs(git) tomcat 7 if using other hosting provider (or personal dedicated server).
in other words, want setup automated loop grails web application. , preferable there generic way other java web application built using web frameworks spring/strutts etc.
short answer: yes can. you'll need manually.
heroku uses concept of post-receive hooks , buildpacks automatically deploy application when code pushed master branch of version control. in case of github, can use webhooks configure post-receive hooks can automatically create war file , deploy automatically qa or production server, example.
you can follow github's guide setting first webhook (https://developer.github.com/webhooks/creating/). basically, whenever push data github repo, send data url of choice (also known webhook). can have listener running on address process data , run custom script in case deploy java application. using ruby file can use language prefer, bash script.
you can see sample payload sent github https://gist.github.com/gjtorikian/5171861
the post-receive hook common concept , available in every version control system out there. own dedicated server or own hosted version control, you'll need implement scratch.
Comments
Post a Comment