Search code examples
tomcatgrailsrun-app

Grails - using subdomain of localhost on run-app


Is there any way of configuring the embedded tomcat (from run-app) to respond to myapp.localhost:8080 instead of localhost:8080/myapp ?


Solution

  • modify your local hosts file so myapp.localhost points to localhost

    127.0.0.1         myapp.localhost
    

    modify the conf/Config.groovy and add grails.app.context = “/”