How to purge tomcat's cache when deploying a new .war file? Is there a config setting?

前端 未结 10 993
忘掉有多难
忘掉有多难 2020-12-09 14:43

I have a simple hello, world servlet application that I am just playing around with, and pushing it out to my tomcat server on a VPS.

When I make a change to my code

10条回答
  •  遥遥无期
    2020-12-09 15:33

    A little late for the party, here's how I do it

    1. Undeploy application from manager
    2. Shutdown tomcat using ./shutdown.sh
    3. Delete browser cache
    4. Delete the application from webapps, and from /work/Catalina/...
    5. Startup tomcat using ./startup.sh
    6. Copy the new version of the application into /webapps and start it.

提交回复
热议问题