Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails war file deployment on Tomcat

When I deploy Grails application (war file) on Tomcat 7 I start it with *server_ip:8080/war_file_name-0.1* How can I make this server_ip/war_file/

like image 663
drago Avatar asked Dec 06 '25 08:12

drago


1 Answers

Just change the name of the war file. You can change the name generated by Grails either by specifying it on the command line:

grails war war_file.war

or by setting it in Config.groovy:

grails.war.destFile = "war_file.war"

If you want to get rid of the :8080 after the server IP, change the default port that Tomcat listens on to 80.

like image 172
socha23 Avatar answered Dec 08 '25 07:12

socha23



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!