Grails 2.2.0
I added
grails.project.fork.run=true
to the Config.groovy file. On the command line, issued:
grails run-app
My understanding of the fork ability is that the grails system would exit, leaving tomcat running. But it never exits. I have to control+c to leave it, which also kills tomcat. So I don't believe tomcat is being forked. Am I missing something?
When doing a run-app I'm seeing a single Java process in both top and Activity Monitor. I'm also only seeing a single process when I execute:
ps aux | grep java
Per the comments in Ian's answer, I should be seeing 2 processes.
The docs are misleading, you have to put that configuration line in BuildConfig.groovy
, not Config.groovy
(tried with version 2.2.1).