user3675091
user3675091

Reputation: 365

Deploy grails as Tomcat Root

I have been deploying my webapp with <app-name>.war in my case tao.war. Now I need to deploy it in the tomcat ROOT.

So I was renaming tao.war in ROOT.war. Everything seemed to work but when I was editing a domain class respective update was done in the DB but I got forwarded to

localhost:8080/tao/person/show/1

where I was expecting

localhost:8080/person/show/1

without the app-name.

Where does the app-name in the URL come from? Where am I missing something.

Upvotes: 0

Views: 172

Answers (1)

user1791574
user1791574

Reputation: 1749

Try this:

grails.app.context = '/'

in Config.groovy.

Enjoy.

Upvotes: 4

Related Questions