Search code examples
grails

How to change the URL in a grails project?


I have a grails project and right now the URL to connect to it is this awful string like so:

 http://mynodename.foobar.com:8080/MyAppName-0.1/

I would like it to be:

 http://myappname.foobar.com/

I assume this is done in UrlMappings but I can't figure out how to do it and can't seem to find any info on it.

Another question, when I bookmarkthe URL I'd like it to default to 'MyAppName', where is that done?

Any help appreciated greatly!


Solution

  • production:
        server:
            port: 5000
        grails:
            serverURL: 'https://www.domain.io'
    

    This works form me on application.yml file