user903772
user903772

Reputation: 1562

Grails 3 serverURL in application.yml

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

Upvotes: 0

Views: 1026

Answers (1)

Mike W
Mike W

Reputation: 3932

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

Upvotes: 1

Related Questions