0

I'm trying to set the serverURL per environment in application.yml as follows:

environments:
    development:
        grails:
            serverURL: http://localhost:8089
        dataSource:
            dbCreate: create
            url: jdbc:postgresql://localhost:5432/tests
            username: postgress
            password: rootass

But it doesn't work - when I do run-appit still runs on 8080. Also, how do I set the app name or context name so when I do run-app it's like http://localhost:8089/vis

user903772
  • 1,554
  • 5
  • 32
  • 55

1 Answers1

1

Try the following:

server:
    port: 8089

You can add contextPath at the same level as port if need be e.g.

server:
    port: 8089
    contextPath: '/myApp'

Should be accessible at http://localhost:8089/myApp

Mike W
  • 3,853
  • 2
  • 11
  • 18