grails-samples / grails-website

Grails Web Site
157 stars 174 forks source link

Add default grails.serverURL for development environment. #2

Closed stefankendall closed 12 years ago

stefankendall commented 13 years ago

Add default grails.serverURL for development environments, as run-app breaks without it.

The breakage when grails.serverURL isn't present is rather obscure, stating "ConfigObject cannot be cast to string...". If you haven't seen this before, it's unlikely you'll know how to fix it. The development environment is probably almost always localhost:8080 for a new checkout, and this makes it a little easier to start a server for the first time. Anyone who knows to change grails.serverURL still can. This default isn't dissimilar to the default mysql datasource - it's just an easy configuration to get you going.

pledbrook commented 12 years ago

The grails.serverURL has now been removed because this can quite easily break the redirects if you run the app on a different port. However, the underlying bug has been fixed.

Again, sorry for missing this contribution and a belated thanks!