1

I am working with grails version 2.5.4. My application is running fine for me but I can't get any change or update if I change my controller code. I am using Intellij Idea 14. When I run my application my code is as below:

def index() {
    render "Hello world..."
}

Then after I change my code as below:

def index() {
        render "Hello world...Update"
}

I can't get update details on render with "Hello world...Update" text

Piyush Chaudhari
  • 962
  • 3
  • 19
  • 41

2 Answers2

0

you need put in your config.groovy file below configuration set reload gsp to true.

grails.gsp.enable.reload = true

For more details:

http://mrhaki.blogspot.in/2015/11/grails-goodness-enable-hot-reloading.html

Dipak Thoke
  • 1,963
  • 11
  • 18
0

This is totally random, but I had the exact same problem, but mine suddenly appeared. It had been working for years, but then suddenly last week it stopped working.

The reason? Well, I had tidied up my disk and moved/renamed some files, and in doing so I had a folder which had a space in it's name. (ie all my projects were in a folder called \apps\grails\ and I then tidied things up so I had \apps\grails 2.1.1\ and \apps\grails 2.5.6\ etc.

As soon as I removed the spaces (so instead, I had \apps\grails2.5.6) - bingo! It started working again.

Simon
  • 97
  • 3
  • 13