W
W
web_dev2017-01-12 14:36:50
Java
web_dev, 2017-01-12 14:36:50

Spring Boot rebuild and restart after commit?

Hello,
I didn’t “googling” “impudently”, can someone tell me how to make this process the fastest and easiest?
Nothing special. 2 people are working on one SpringBoot project. There is a virtual machine on the Internet where this project runs along with the database.
I would like SpringBoot to monitor the repository, and as soon as a new commit appears there, do a pull, rebuild itself and restart.
Is it possible to do this somehow without third-party utilities?
If so, how? Tell me where to watch / read.
If not, what will be the fastest way, jenkins for this and so on the server does not want to be installed. Handles copy each time too ..
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Victor Alenkov, 2017-01-12
@web_dev

0) (if not Gradle) pull changes and rebuild by cron, and enable devtools support for Spring Boot
1) (if Gradle) pull by cron, run gradle build with the continuous parameter , enable devtools support for Spring Boot

E
Eugene, 2017-01-12
@zolt85

There are no built-in mechanisms, and cannot be, because SpringBoot is not designed for this. If you do not want to install your own jenkins, you can try online solutions, since there are thousands of them.
Here is a small list of CI services that support GitHub. Almost all provide free rates in one way or another.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question