In my working scenario I use SmartGWT on top of the grails application. Normaly I provide custom build server for testing team, but today there was a I need to let them use my local instance.
In GWT plugin manual I found a solution but unhappily it didn't work for me.
I found I need to modify grails plugin itself in ~/.grails directory.
Below you can find short description of what needs to be done.
We need to edit gwt plugin file. It can be found at:
~/.grails/{wersja_grails}/projects/fisCrm/plugins/gwt-{wersja_gwt}/scripts/_GwtInternal.groovy
We look for a place defining target of runed application:
gwtClientServer = "${serverHost ?: 'localhost'}:${serverPort}"
target (runGwtClient: "Runs the GWT hosted mode client.") {
Now lets modify instructions below the code that parses parameters send to run-gwt-client command.
After that we want to have something similar to this:
if (argsMap["debug"]) {
def debugPort = !(argsMap["debug"] instanceof Boolean) ? argsMap["debug"].toInteger() : 5006
jvmarg(value: "-Xdebug")
jvmarg(value: "-Xnoagent")
jvmarg(value: "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=${debugPort}")
}
if (argsMap["bindAddress"]) {
arg(value: "-bindAddress")
arg(value: "YOUR_IP_ADDRESS!!!")
}
Save file. Run the command:
grails run-gwt-client -bindAddress
On remote machine, open browser with following URL:
http://YOUR_IP_ADDRESS:8080/fisCrm/?gwt.codesvr=YOUR_IP_ADDRESS:9997
hope that helps :)
Recent comments
1 year 20 weeks ago
1 year 20 weeks ago
1 year 27 weeks ago
1 year 29 weeks ago
1 year 47 weeks ago
1 year 49 weeks ago
1 year 49 weeks ago
1 year 49 weeks ago
1 year 49 weeks ago
1 year 49 weeks ago