Not sure if this is just a minor configuration issue or otherwise, but when I run my grails app from within IntelliJ (via either run or debug), I never seem to be able to hit it from outside my localhost. So I can't hit my server from any of the other machines on the network, or from my phones when I'm trying to do WAP development. Yet, when I do grails run-app
from the terminal, things work fine. I imagine it has something to do with how IntelliJ is binding the server, but does anyone have ideas on how to get it working? Thanks again!
views:
131answers:
2
+1
A:
You should launch Grails with debug parameters (grailsDebug) and create a Remote debug run configuration in IntelliJ IDEA's Run Configurations combobox. Enter your host name and port there and you can connect now.
Peter Gromov
2009-10-27 10:06:41
This approach still requires grails to be run via the command line though does it not? It works as a partial solution, but ideally I could run directly within IntelliJ (we run into some memory issues when running command line that I haven't been quite able to get around).
Johnny
2009-10-28 17:19:41
+2
A:
In the Intellij configuration that you use to start the server, set 'Server host' to the hostname of your machine. If it is set to 'localhost' you can't connect using the actual hostname of the machine.
Darrin
2009-11-12 15:35:37