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:
- I have also tried to set up a Tomcat configuration and run that as a web archive exploded but it is still not working for grails apps. However, it did work for my other Spring/Hibernate web applications.
- I have also tried STS IDE and classes and resources get updated fine as I make changes.
Does anybody know how to tell IntelliJ IDEA update classes and resources for a Grails app?
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.