EK.
EK.

Reputation: 2996

Grails output directory

I want to create war using grails, but by default it creates war file in target directory. I want to deploy my war into Tomcat. Is it possible? Thanks

Upvotes: 3

Views: 1745

Answers (1)

Gregg
Gregg

Reputation: 35864

In the grails-app/conf/BuildConfig.groovy file you can specify the war like this:

grails.project.war.file = "target/${appName}-${appVersion}.war"

So make target whatever you want. Although, I'd not recommend WAR'ing directly into Tomcat for deployments. Unless you are just doing this for local testing.

Upvotes: 8

Related Questions