Set up: I have a grails project in IntelliJ Idea. I run the application by clicking on the "Play" button up top where I have a grails configuration with the default grails run command "run-app". All good there.
Problem: When I make a change to a gsp, controller, css, js or any other file If I click refresh on the browser (Control +F5) the changes are not reflected. I have to stop/restart. This is slowing me down.
What I have done:
Does anybody know how to tell IntelliJ IDEA update classes and resources for a Grails app?
According to the Definitive Guide to Grails book,on page 34 it states that hot reloading is only available when running on dev mode. Thanks Nate (my coworker) for pointing that out.
So the moral of the story is that when you are ready to deploy your model to a real physical database, put the database settings in the "development" section not in the test section. That is if you want hot reloading of course for quick development.
If you run a grails application using grails dev run-app, the application won't be hot reloaded. So, just start your application using grails run-app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With