Grails - using subdomain of localhost on run-app

902 Views Asked by At

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

1

There are 1 best solutions below

1
On BEST ANSWER

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 = “/”