-
Notifications
You must be signed in to change notification settings - Fork 8
Command line deployment
Phil Callender edited this page Aug 23, 2014
·
1 revision
The first step is to define the server you wish to deploy to. This is done by updating the deploy section in tooltwist.js.
"mode" : "deploy",
...
"deploy" : {
installDesigner: true,
servers: [
{
id: 'server1',
description: "Test server",
host: '128.199.170.221',
disable: false,
isProductionServer: true,
serverHome: '/home/tooltwist/server',
webappName: "ttsvr",
installCmd: "",
installMethod: "fip",
username: "",
password: "",
imagemagickHome: "/usr/local",
sshPort: 0,
fipPort: 39393,
// Hopefully obsolete
installTomcat: false,
webappsDir: "/home/trackmotion/server/tomcat/webapps",
tomcatHome: "/home/trackmotion/server/tomcat",
httpPort: 9280,
httpsPort: 9281,
serverPort: 9282,
ajpPort: 9283,
webcontentInJars: false
}
]
}
This is rather simple:
$ tooltwist
To simplify logging in, and to help ensure you log in to the correct server, this command can be used:
$ tooltwist login
A rules file is used to specify which files get deployed to the remote server(s).
The default rules install the application while being careful not to overwrite Tomcat configuration files or logs, or effecting the site-specific configuration files.
This file very rarely needs to be changed, but if necessary can be tweaked by modifying template ZZZZZ.