The context
I am using Google App Engine using the Grails AppEngine plugin . The default port is 8080, but I needed to run it on a different port.
It was easy to figure out that Google App Engine supports running the development server on any configured port. But it took me some time to realize that the Grails AppEngine plugin that I am using doesn’t.
The fix:
Modify the \plugins\app-engine-0.8.5\scripts\AppEngine.groovy.
The lines in bold are the ones that I added
private startDevServer(boolean debug) {
def port = System.getProperty(”server.port”)
startAppEngineGeneratedThread()
startAppEngineReloadThread()
ant.dev_appserver(war:stagingDir) {
options {
if(Environment.current == Environment.DEVELOPMENT) {
if (port) {
arg value:”–port=${port}”
}
arg value:”–jvm_flag=-D–enable_all_permissions=true”
}
Versions:
Grails: 1.1.1
Goovy:1.6.2
Java: 1.5.x
App Engine SDK: 1.2.5
Grails App Engine Plugin : 0.8.5






Recent Comments