tooltwist
Version:
Tooltwist Command Line Interface
194 lines (164 loc) • 5.35 kB
JavaScript
exports.config = {
/*
* Mode should be one of the following:
* designer - Run the ToolTwist designer in standalone mode.
*
* deploy - Generate, validate, and install the project to a
* remote location.
*
* controller - Similar to deploy mode, but is compatible
* with the v8.2 Controller (i.e. it uses config
* files beneath /ContollerV8).
*/
"mode" : "{{&MODE}}",
"version" : "8.5.0-SNAPSHOT",
"designer" : {
/*
* The port where the designer will run.
* By default port 5000 will be used.
*/
//"port": 8888,
/*
* This section defines the web design project we are working with. Access to
* the Git repo should be available without login credentials (ie. via SSH).
*
* Not required for controller mode.
*/
"name" : "ttdemo",
"repo" : "https://github.com/tooltwist/ttdemo.git",
"branch" : "master",
/*
* This section defines the repository used to find JAR files and other
* dependencies required by your webdesign project. The dependencies
* themselves are defined in project.json in the webdesign project.
*/
"resolve_contextUrl" : "http://repo.tooltwist.com/artifactory/",
"resolve_repo" : "tooltwist-all-in-one",
"repository_user": "", // anonymous access.
"repository_password": ""
// "repository_user": "fred.smith", // credentials from Artifactory.
// "repository_password": "{DESede}xyxyxyxyxyxyxyxyxyxyxy=="
// Example using ARTIFACTORY_USER and ARTIFACTORY_PASSWORD properties,
// which can be defined system-wide in ~/.gradle/gradle.properties.
/*
"resolve_contextUrl" : "property.RESOLVE_CONTEXTURL",
"resolve_repo" : "property.RESOLVE_REPO",
"repository_user": "property.ARTIFACTORY_USER",
"repository_password": "property.ARTIFACTORY_PASSWORD"
*/
},
{{#NOTYET}}
/*
* Definitions for controller mode.
*/
"controller" : {
// No other values are require at this time, as they come from the
// v8.2 configuration files under /ControllerV8.
},
{{/NOTYET}}
"deploy" : {
{{#NOTYET}}
// host: "{{&HOST}}",
{{/NOTYET}}
/*
* In controller mode we do not need to set any values here, as they can
* come from config files under /ControllerV8. However, the name of the
* launchpad can be set here if it varies from the current directory name.
*/
//"launchpad" : "myLaunchpad",
/*
* FIP (File Installation Protocol) is a set of utilities used by ToolTwist
* to install files on remote servers, with transactional (either all or
* nothing) and minimal down-time characteristics. The following values are
* used to guarantee that the data is not altered in transit.
*/
"sourceUuid" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"destinationUuid" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"destinationPassphrase" : "Once upon a time...",
/*
* Servers where we will deploy this app.
*
* Not used in controller mode.
*/
servers: [
{
id: 'server1',
description: "Test server",
host: '128.199.170.221',
disable: false,
isProductionServer: true,
serverHome: '/home/tooltwist/server',
webappName: "ttsvr",
installMethod: "fip",
imagemagickHome: "/usr/local",
fipPort: 39393,
// Hopefully obsolete
installCmd: "",
sshPort: 0,
installTomcat: false,
username: "",
password: "",
webappsDir: "/home/trackmotion/server/tomcat/webapps",
tomcatHome: "/home/trackmotion/server/tomcat",
httpPort: 9280,
httpsPort: 9281,
serverPort: 9282,
ajpPort: 9283,
webcontentInJars: false
}
]
{{#NOTYET}}
// Not implemented yet.
/*
Launchpad
name
<description>Launchpad 2</description>
<type>test</type>
<latestStatus>CF</latestStatus>
<disable></disable>
*/
// Generator slot (is this used?
/*
name
obj.GENERATOR_DESCRIPTION = result.generatorSlot.description[0];
obj.GENERATOR_HTTP_PORT = result.generatorSlot.httpPort[0];
obj.GENERATOR_HTTPS_PORT = result.generatorSlot.httpsPort[0];
obj.GENERATOR_SERVER_PORT = result.generatorSlot.serverPort[0];
obj.GENERATOR_AJP_PORT = result.generatorSlot.ajpPort[0];
obj.GENERATOR_DISABLE = result.generatorSlot.disable[0]; //ZZZZZZZZZZ Check this
obj.GENERATOR_INSTALL_TOMCAT = result.generatorSlot.installTomcat[0];
obj.GENERATOR_IMAGEMAGICK_HOME = result.generatorSlot.imagemagickHome[0];
*/
/*
// Server slot
<serverSlot>
<description></description>
<serverHome>/Users/slot1/server</serverHome>
<webappName>ttsvr</webappName>
<httpPort>9280</httpPort>
<httpsPort>9281</httpsPort>
<serverPort>9282</serverPort>
<ajpPort>9283</ajpPort>
<webappsDir>/Users/slot1/server/tomcat/webapps</webappsDir>
<tomcatHome>/Users/slot1/server/tomcat</tomcatHome>
<installCmd></installCmd>
<installMethod>fip</installMethod>
<server>localhost</server>
<username></username>
<password></password>
<installTomcat>Y</installTomcat>
<imagemagickHome>/usr/local</imagemagickHome>
<sshPort></sshPort>
<fipPort>39393</fipPort>
<disable>N</disable>
<isProductionServer>N</isProductionServer>
<webcontentInJars>N</webcontentInJars>
<launchpadUsingThisSlot>none</launchpadUsingThisSlot>
<isGroup>N</isGroup>
<group></group>
</serverSlot>
// Handle groups ZZZZZ
*/
{{/NOTYET}}
}
};