Skip to content

Instantly share code, notes, and snippets.

@YacheLee
Last active January 21, 2016 03:09
Show Gist options
  • Save YacheLee/5ffcff79045c3213b0df to your computer and use it in GitHub Desktop.
Save YacheLee/5ffcff79045c3213b0df to your computer and use it in GitHub Desktop.
※ CI server
@Setting tomcat for runtime deploy
1.server.xml
<Host path="/" name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="false">
2.context.xml
<Context antiResourceLocking="true">
3.tomcat-users.xml
<role rolename="admin-gui"/>
<role rolename="admin-script"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="tomcat" password="tomcat" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-script,admin-gui"/>
</tomcat-users>
@undeploy
curl "http://tomcat:tomcat@localhost:8080/manager/text/undeploy?path=/"
@ftp(Filzilla Server have to set speed limits to No limtis)
uploadFtp
@deploy(C:\ROOT.war)
curl "http://tomcat:tomcat@localhost:8080/manager/text/deploy?path=/&war=file:/C:\ROOT.war"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment