curl --user admin:admin http://localhost:8080/manager/text/reload?path=/myapp
Doc aqui: HOW-TO do App Manager, recarregar um aplicativo existente
A função gerente-script é necessária para o usuário, conforme a documentação diz:
It would be quite unsafe to ship Tomcat with default settings that allowed anyone on the Internet to execute the Manager application on your server. Therefore, the Manager application is shipped with the requirement that anyone who attempts to use it must authenticate themselves, using a username and password that have the role manager-script associated with them. Further, there is no username in the default users file (
$CATALINA_BASE/conf/tomcat-users.xml
) that is assigned this role. Therefore, access to the Manager application is completely disabled by default.
Nota: o Tomcat 6 usa diferentes URLs de gerenciamento. ( Como fazer o App do Apache Tomcat 6.0 Manager )