Wednesday, March 31, 2010

Grails change server url

http://n4.nabble.com/Change-grails-serverUrl-td1392842.html :
Change  grails.serverURL = "http://localhost:8080/${appName}" to  grails.serverURL = "http://localhost:8080/" in Config.groovy


and 


Change "app.context=" to "app.context=/" in application.properties. That's it.


One could use UrlMappings to retain support for older URLs.(If older URLs containing the app context name in them are already being used by dependent components/clients.) until all dependents/clients are notified that they need not use the app contextname in the urls. They should thus change service URLs from http://domainName/app.contextName/ to http://domainName/

No comments:

Post a Comment