Skip to content

Configure Grails app to run on different port

by Tomek on June 4th, 2010

The obvious, and most widely suggested method of changing default HTTP port that Grails app listens on, is to add command line switch:

tomek@jabuszko:~$ grails run-app -Dgrails.server.port.http=9900

Personally, I don’t like this. Command line became a bit lengthy. Creating extra run configuration in Eclipse. Not for lazy hacker like me. It’s much simpler to edit grails-app/conf/BuildConfig.groovy, add

grails.server.port.http = 9900

and voila!

From → Wszystko inne

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS

Comment spam protected by SpamBam