Tomcat manager remote deploy script

前端 未结 6 2084
故里飘歌
故里飘歌 2020-11-28 21:45

I\'m writing a shell script to auto deploy/undeploy using the tomcat manager.

Following the instructions on http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.htm

6条回答
  •  春和景丽
    2020-11-28 22:06

    Improving Jet answer, this works for me in tomcat 8, java 64 bits.

    This was what I execute:

    curl -v -u some_user:some_password -T /../my_app.war 'http://127.0.0.1:tomcat_port/manager/text/deploy?path=/my_app&update=true'
    

    This will work if we configure tomcat users in :

    /.../.../apache-tomcat-8.5.0_001/conf/tomcat-users.xml
    

    with:

    
    
    
    
    
    
    
    
    

    Restart tomcat and it will be ready to deploy wars from remote clients like curl, jenkins, travis, etc

提交回复
热议问题