⬆️ Tomcat Manger

Use tomcat's builtin manager API to upload/update WAR files

Create user inside tomcat/bin/tomcat-users.xml

<?xml version="1.0" encoding="UTF-8"?>
<tomcat-users xmlns="http://tomcat.apache.org/xml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
version="1.0">
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user username="username" password="password" roles="manager-gui, manager-script"/>
</tomcat-users>
curl --upload-file path/to/foo.war http://username:[email protected]:8080/manager/text/deploy?path=/foo&update=true