By default IntelliJ IDEA modifies CATALINA_BASE
environment so that Tomcat uses adjusted configuration files for deploying applications directly from the artifact output location, however it’s possible to override this behavior and configure everything manually (either by changing the artifact output to go into webapps
or by changing the server configuration in the same way IDEA does so that deployment occurs from the standard artifact output).