Issue Details (XML | Word | Printable)

Key: GRAILS-1861
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Graeme Rocher
Reporter: Rintcius Blok
Votes: 8
Watchers: 5
Operations

If you were logged in you would be able to see more operations.
Grails

Allow parameters like server.port to be configurable in Config.groovy

Created: 20/Nov/07 12:58 PM   Updated: 04/Aug/08 10:37 AM
Component/s: Configuration
Affects Version/s: 1.0-RC1
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide

As far as I know parameters like server.port can only be specified on the command line. It would be nice if they could also be specified in Config.groovy so that they dont have to be specified on the command line every time.

This was particularly a problem when I tried to integrate Grails with Hudson (see thread http://www.nabble.com/Regression-Testing%2C-Static-Analysis-and-Continuous-Integration-tf4815863.html ), since somehow the command line parameters don't get picked up when specified from Hudson.



John Haren added a comment - 04/Aug/08 10:37 AM

I'd also like to be able to just set it in an app's config.groovy. However, for the OP, you can also change the default in $GRAILS_HOME/scripts/Init.groovy with the line:

serverPort = System.getProperty('server.port') ? System.getProperty('server.port').toInteger() : 8081