Quantcast

Auto-reloading in Grails 2.4?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
hc
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Auto-reloading in Grails 2.4?

hc
I downloaded GGTS 3.6.4, created a new Grails project, created a new controller. When I run-app, then edit a controller, it auto-recompiles, but I don't see the change in the browser.

Editing GSPs, I see the changes in the browser immediately.

Googling this, I see talk about forked execution, and maybe reloading doesn't work with that? It's not clear to me.

I'm confused. Is auto-reloading supposed to work in Grails 2.4.4?

Thanks.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/21260827-dc26-4c0a-949a-5dc7536a169e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Auto-reloading in Grails 2.4?

jonathanccarter
Try using run-app -reloading. Reloading was no longer default in Grails 2.3. See http://grails.github.io/grails-doc/2.4.x/guide/upgradingFrom22.html. 

On Thursday, March 26, 2015 at 2:33:38 PM UTC-5, hc wrote:
I downloaded GGTS 3.6.4, created a new Grails project, created a new controller. When I run-app, then edit a controller, it auto-recompiles, but I don't see the change in the browser.

Editing GSPs, I see the changes in the browser immediately.

Googling this, I see talk about forked execution, and maybe reloading doesn't work with that? It's not clear to me.

I'm confused. Is auto-reloading supposed to work in Grails 2.4.4?

Thanks.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/d5b0a7fa-463d-4c60-b376-e6c03e7570b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
hc
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Auto-reloading in Grails 2.4?

hc
You're saying it's not supposed to work by default, but it's possible to make it work.

Is it working for you?

I tried Grails Tools > Open Grails Command Prompt and entered:
-reloading run-app
And also:
run-app -reloading
I also tried putting those as the "Run Command" in the "Run Configuration".

No effect.

This is a stripped down, new Grails project, with a controller that just does:
def index() { render "hello world"}

I'm changing that "hello world" text.

Thanks.

On Thursday, March 26, 2015 at 2:38:43 PM UTC-5, [hidden email] wrote:
Try using run-app -reloading. Reloading was no longer default in Grails 2.3. See <a href="http://grails.github.io/grails-doc/2.4.x/guide/upgradingFrom22.html" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fgrails.github.io%2Fgrails-doc%2F2.4.x%2Fguide%2FupgradingFrom22.html\46sa\75D\46sntz\0751\46usg\75AFQjCNHzCNGRIWWZ6vrt3uwpssL-UFtbfA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fgrails.github.io%2Fgrails-doc%2F2.4.x%2Fguide%2FupgradingFrom22.html\46sa\75D\46sntz\0751\46usg\75AFQjCNHzCNGRIWWZ6vrt3uwpssL-UFtbfA';return true;">http://grails.github.io/grails-doc/2.4.x/guide/upgradingFrom22.html. 

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/ee6be97b-325d-4927-b1a5-a4ad4e1ff7f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Auto-reloading in Grails 2.4?

longwa
If you are running with forked mode (the default, I believe), reloading should be enabled.

If you disabled forked mode, you need to enable reloading with the command line switch. Optionally you can edit the startGrails.sh script and change the DISABLE_RELOADING=true flag to false.

When you are running, what is the value of:

grails.util.Environment.reloadingAgentEnabled


On Thursday, March 26, 2015 at 4:17:35 PM UTC-4, hc wrote:
You're saying it's not supposed to work by default, but it's possible to make it work.

Is it working for you?

I tried Grails Tools > Open Grails Command Prompt and entered:
-reloading run-app
And also:
run-app -reloading
I also tried putting those as the "Run Command" in the "Run Configuration".

No effect.

This is a stripped down, new Grails project, with a controller that just does:
def index() { render "hello world"}

I'm changing that "hello world" text.

Thanks.

On Thursday, March 26, 2015 at 2:38:43 PM UTC-5, [hidden email] wrote:
Try using run-app -reloading. Reloading was no longer default in Grails 2.3. See <a href="http://grails.github.io/grails-doc/2.4.x/guide/upgradingFrom22.html" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fgrails.github.io%2Fgrails-doc%2F2.4.x%2Fguide%2FupgradingFrom22.html\46sa\75D\46sntz\0751\46usg\75AFQjCNHzCNGRIWWZ6vrt3uwpssL-UFtbfA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fgrails.github.io%2Fgrails-doc%2F2.4.x%2Fguide%2FupgradingFrom22.html\46sa\75D\46sntz\0751\46usg\75AFQjCNHzCNGRIWWZ6vrt3uwpssL-UFtbfA';return true;">http://grails.github.io/grails-doc/2.4.x/guide/upgradingFrom22.html. 

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/aa4d29a5-8603-4fe3-a735-767adffd7696%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
hc
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Auto-reloading in Grails 2.4?

hc

The value of grails.util.Environment.reloadingAgentEnabled is true.

Also, I left grails.project.fork as it was:

grails.project.fork = [
    // configure settings for compilation JVM, note that if you alter the Groovy version forked compilation is required
    //  compile: [maxMemory: 256, minMemory: 64, debug: false, maxPerm: 256, daemon:true],

    // configure settings for the test-app JVM, uses the daemon by default
    test: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, daemon:true],
    // configure settings for the run-app JVM
    run: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],
    // configure settings for the run-war JVM
    war: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],
    // configure settings for the Console UI JVM
    console: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256]
]



On Thursday, March 26, 2015 at 3:21:36 PM UTC-5, Aaron wrote:
If you are running with forked mode (the default, I believe), reloading should be enabled.

If you disabled forked mode, you need to enable reloading with the command line switch. Optionally you can edit the startGrails.sh script and change the DISABLE_RELOADING=true flag to false.

When you are running, what is the value of:

grails.util.Environment.reloadingAgentEnabled


On Thursday, March 26, 2015 at 4:17:35 PM UTC-4, hc wrote:
You're saying it's not supposed to work by default, but it's possible to make it work.

Is it working for you?

I tried Grails Tools > Open Grails Command Prompt and entered:
-reloading run-app
And also:
run-app -reloading
I also tried putting those as the "Run Command" in the "Run Configuration".

No effect.

This is a stripped down, new Grails project, with a controller that just does:
def index() { render "hello world"}

I'm changing that "hello world" text.

Thanks.

On Thursday, March 26, 2015 at 2:38:43 PM UTC-5, [hidden email] wrote:
Try using run-app -reloading. Reloading was no longer default in Grails 2.3. See <a href="http://grails.github.io/grails-doc/2.4.x/guide/upgradingFrom22.html" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fgrails.github.io%2Fgrails-doc%2F2.4.x%2Fguide%2FupgradingFrom22.html\46sa\75D\46sntz\0751\46usg\75AFQjCNHzCNGRIWWZ6vrt3uwpssL-UFtbfA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fgrails.github.io%2Fgrails-doc%2F2.4.x%2Fguide%2FupgradingFrom22.html\46sa\75D\46sntz\0751\46usg\75AFQjCNHzCNGRIWWZ6vrt3uwpssL-UFtbfA';return true;">http://grails.github.io/grails-doc/2.4.x/guide/upgradingFrom22.html. 

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/2b7f1898-48aa-4916-9aee-e301bf064acc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Auto-reloading in Grails 2.4?

Chris Davis
In reply to this post by hc
Did you get it working, I am having the same issue and none of the suggested fixes are having any effect

On Thursday, 26 March 2015 20:17:35 UTC, hc wrote:
You're saying it's not supposed to work by default, but it's possible to make it work.

Is it working for you?

I tried Grails Tools > Open Grails Command Prompt and entered:
-reloading run-app
And also:
run-app -reloading
I also tried putting those as the "Run Command" in the "Run Configuration".

No effect.

This is a stripped down, new Grails project, with a controller that just does:
def index() { render "hello world"}

I'm changing that "hello world" text.

Thanks.

On Thursday, March 26, 2015 at 2:38:43 PM UTC-5, [hidden email] wrote:
Try using run-app -reloading. Reloading was no longer default in Grails 2.3. See <a href="http://grails.github.io/grails-doc/2.4.x/guide/upgradingFrom22.html" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fgrails.github.io%2Fgrails-doc%2F2.4.x%2Fguide%2FupgradingFrom22.html\46sa\75D\46sntz\0751\46usg\75AFQjCNHzCNGRIWWZ6vrt3uwpssL-UFtbfA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fgrails.github.io%2Fgrails-doc%2F2.4.x%2Fguide%2FupgradingFrom22.html\46sa\75D\46sntz\0751\46usg\75AFQjCNHzCNGRIWWZ6vrt3uwpssL-UFtbfA&#39;;return true;">http://grails.github.io/grails-doc/2.4.x/guide/upgradingFrom22.html. 

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/79234a5b-63a6-4560-9e9a-631052a41bd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Auto-reloading in Grails 2.4?

Jeff Brown

> On Jul 9, 2015, at 8:15 AM, Chris Davis <[hidden email]> wrote:
>
> Did you get it working, I am having the same issue and none of the suggested fixes are having any effect

Are you running in forked mode?

What operating system are you using?

What JDK?

Thanks for the feedback.



JSB

Jeff Scott Brown
Principal Software Engineer
Grails Development Team
Object Computing Inc.
http://www.ociweb.com/

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/20253B40-0C8D-4E4F-A2E8-EC12544110D0%40ociweb.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Auto-reloading in Grails 2.4?

Chris Davis
Hi thanks for getting back to me, I have fixed the issue it turned out to be spaces and/or consecutive capital letters in the project name

System info for completeness:
Windows 7
GGTS 3.6.4
JDK 1.7.0_79

Not sure about forked mode I am using the default new project fork setting run: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],

cheers


On Thursday, 9 July 2015 14:23:49 UTC+1, Jeff Scott Brown wrote:

> On Jul 9, 2015, at 8:15 AM, Chris Davis <<a href="javascript:" target="_blank" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">chris...@...> wrote:
>
> Did you get it working, I am having the same issue and none of the suggested fixes are having any effect

Are you running in forked mode?

What operating system are you using?

What JDK?

Thanks for the feedback.



JSB

Jeff Scott Brown
Principal Software Engineer
Grails Development Team
Object Computing Inc.
<a href="http://www.ociweb.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fwww.ociweb.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNGmJq4FzWg40kVUyr9KFZMiSj7t1Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fwww.ociweb.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNGmJq4FzWg40kVUyr9KFZMiSj7t1Q&#39;;return true;">http://www.ociweb.com/

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
<a href="http://www.autismspeaks.org/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fwww.autismspeaks.org%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fwww.autismspeaks.org%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;">http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/abcf1552-2e98-4b3d-b983-cc193303ffba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Auto-reloading in Grails 2.4?

Abir Basu
Chris ! Thanks a zillion ! Spared me the horror :)

On Monday, July 13, 2015 at 2:32:52 AM UTC+5:30, Chris Davis wrote:
Hi thanks for getting back to me, I have fixed the issue it turned out to be spaces and/or consecutive capital letters in the project name

System info for completeness:
Windows 7
GGTS 3.6.4
JDK 1.7.0_79

Not sure about forked mode I am using the default new project fork setting run: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],

cheers


On Thursday, 9 July 2015 14:23:49 UTC+1, Jeff Scott Brown wrote:

> On Jul 9, 2015, at 8:15 AM, Chris Davis <[hidden email]> wrote:
>
> Did you get it working, I am having the same issue and none of the suggested fixes are having any effect

Are you running in forked mode?

What operating system are you using?

What JDK?

Thanks for the feedback.



JSB

Jeff Scott Brown
Principal Software Engineer
Grails Development Team
Object Computing Inc.
<a href="http://www.ociweb.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.ociweb.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmJq4FzWg40kVUyr9KFZMiSj7t1Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.ociweb.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmJq4FzWg40kVUyr9KFZMiSj7t1Q&#39;;return true;">http://www.ociweb.com/

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
<a href="http://www.autismspeaks.org/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;">http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/8b91bf4e-e1e7-4a6a-be3c-de79dd35f786%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...