War deployment on Tomcat takes ages

后端 未结 6 1684
猫巷女王i
猫巷女王i 2021-02-07 23:11

I have a Grails application, built to a war file (~30mb). When I attempt to deploy the war file on Tomcat 6 via the application manager, it takes upwards of 10 minutes to deploy

6条回答
  •  情歌与酒
    2021-02-07 23:48

    I upload the WAR to my home directory, cd to /usr/local/tomcat, then run the following commands:

    bin/shutdown.sh
    rm webapps/ROOT.war
    rm -rf webapps/ROOT
    cp ~/ROOT.war webapps
    bin/startup.sh
    

提交回复
热议问题