Skip to content

Instantly share code, notes, and snippets.

@martint17r
Created March 11, 2013 09:10
Show Gist options
  • Save martint17r/5132950 to your computer and use it in GitHub Desktop.
Save martint17r/5132950 to your computer and use it in GitHub Desktop.
grails server port selection for test environment
if (System.getProperty('grails.env') == 'test') {
grails.server.port.http=new Integer(System.getProperty('grails.server.port', System.getProperty('server.port', "7070")))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment