Deploying Tomcat apps via the manager
Blog post from Octopus Deploy
Matthew Casperson's blog post discusses how to deploy WAR files to Tomcat using the Tomcat Manager application. Initially, it involves configuring Tomcat by defining user credentials in the conf/tomcat-users.xml file, assigning browser-based users the "manager-gui" role and API users the "manager-script" role. The default maximum file upload size of 50MB can be increased by modifying the <multipart-config> element in the web.xml file. The process includes packaging the WAR file, staging it in a temporary location, and then deploying it via an HTTP PUT request to the Tomcat Manager's deploy URL, using the correct credentials and specifying the context path. Successful deployment can be confirmed by accessing the Tomcat Manager web interface. Casperson notes that these procedures are part of a proof of concept that may be integrated into Octopus Deploy, and invites feedback and discussion on potential Java support features.