Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 294
EK. Avatar asked Feb 01 '26 07:02

EK.


1 Answers

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.

like image 145
Gregg Avatar answered Feb 03 '26 20:02

Gregg