Often when developing applications, i find myself running gradle deploy alot. I was wondering if there exists or is possible to create a way to watch the folder for changes and automatically deploy them?
Yes, this is possible, simply use gradle -t deploy
-t, --continuous Enables continuous build. Gradle does not exit and will re-execute tasks when task file inputs change. [incubating]
1 Like
Of course you only need to deploy when changing libraries and Java code and such. You can start XP in dev mode ./server.sh dev
and then most changes to your code will take place immediately without re-building the jar file.
2 Likes
Oh, that sounds nice! How does this work?
I don’t know how it works, but you use dev mode by starting XP with ‘./server.sh dev’ and you can read about it here http://xp.readthedocs.io/en/stable/developer/projects/devmode.html
1 Like