0

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?

user8125765
  • 209
  • 1
  • 2
  • 16

1 Answers1

0

Add server.contextPath:

environments:
  development:
    server:
      contextPath: /projectName
Evgeny Smirnov
  • 2,886
  • 1
  • 12
  • 22