Grails Programmer : How to change the server url of a Grails 3 App?

Sometimes you need to configure the exact server url (via domain name or ip address) of your Grails app. It is easy do it with a small configuration in your grails-app/conf/application.yml

---
environments:
    development:
        grails:
            serverURL: http://192.168.1.5:8080
    test:
        grails:
            serverURL: http://localhost:8080
    production:
        grails:
            serverURL: http://mydomain.com

My next events:
๐Ÿ—“ May 27 09:00 AWS Dublin - Micronaut and AWS Lambda
๐Ÿ—“ Jul 20 09:00 Workshop Security in the Micronaut Framework
๐Ÿ—“ Sep 20 09:00 JCON Online 2022 - Getting Started with the Micronaut Framework
๐Ÿ—“ Sep 23 09:00 JCON Online 2022 - Micronautยฎ Framework and Microstream Java-native persistence engine

Tags: #grails
Mar 2016, 02.