-
Notifications
You must be signed in to change notification settings - Fork 5
cat deploy
Zealin edited this page Oct 30, 2012
·
3 revisions
cat-deploy stops specified running tomcat service, copy the artifacts into the desired server directory(appends /webapps/, clears log and work directory) and then starts the tomcat service Current working deploy types:
- lancopy - copy and extract root.war files
You can not use the gradle deploy command without specifying at least one configuration in build.gradle
If there is more than one configuration you have to use gradle deploy -PdepConfig=confName or an exception will be thrown
Example (there are currently no default values) with 2 deploy configurations (if there is only one configuration you can use the gradle deploy command without extra parameter.
apply plugin: 'cat-deploy'
deploy {
anyName {
type = 'lancopy'
tomcatHost = '\\\\\\\\HOSTNAME'
tomcatService = 'SERVICENAME'
webappWar = 'artifacts'
webappDir = '\\\\\\\\HOSTNAME\\\\PATH\\\\...'
}
otherName {
type = 'lancopy'
tomcatHost = '\\\\\\\\HOSTNAME'
tomcatService = 'SERVICENAME'
webappWar = 'artifacts'
webappDir = '\\\\\\\\HOSTNAME\\\\PATH\\\\...'
}
}