saladinkzn / gretty

Advanced gradle plugin for running web-apps on jetty and tomcat.
MIT License
2 stars 2 forks source link

Trigger hot deployment reload with a keypress #12

Open gkostalkowicz opened 8 years ago

gkostalkowicz commented 8 years ago

A very nice feature would be to trigger an app reload manually with a keypress instead of automatic scanning. Doing a series of small changes, the webapp will keep restarting all the time, which consumes resources if a restart is taking a long time. When I finally want to see the changes, the webapp might be already in the process of restarting - I have to wait till it finishes and then restart it again.

My suggested solution is to have two modes - either automatic or manual reloading - in the same way as jetty-maven-plugin does.

saladinkzn commented 8 years ago

Hello

Gretty already has this feature: gretty { interactiveMode = 'rebuildAndRestartOnKeyPress' }

It's further described here in docs

gkostalkowicz commented 8 years ago

Great! It would be cool to mention that on that doc page as well. If it covers automatic reloading, why not a short notice about a manual reload?

By the way, it would be also nice to add a note that in a multi-project build, scanDir includes only current subproject directiories - not the parent project. It would definitely save the time to those who are new to Gradle.

saladinkzn commented 8 years ago

Thanks for your suggestions! I'll update documentation

2016-04-26 21:47 GMT+03:00 Grzegorz Kostałkowicz notifications@github.com:

Great! It would be cool to mention that on that doc page http://akhikhl.github.io/gretty-doc/Hot-deployment.html as well. If it covers automatic reloading, why not a short notice about a manual reload?

By the way, it would be also nice to add a note that in a multi-project build, scanDir includes only current subproject directiories - not the parent project. It would definitely save the time to those who are new to Gradle.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/saladinkzn/gretty/issues/12#issuecomment-214846793