Hi I m upgrading existing Grails 2.4.5 to Grails 3.3.2. I followed https://docs.grails.org/3.0.x/guide/upgrading.html. Grails app runs at localhost:8080, but I want server URL as http://localhost:8080/projectName. I tried adding the following to application.yml:
environments:
development:
grails:
serverURL: http://localhost:8080/projectName
And URLMappings.groovy looks like below:
"/"(view:"/index")
"500"(view:'/error')
"404"(view:'/notFound')
What am I doing wrong?
Add server.contextPath:
environments:
development:
server:
contextPath: /projectName