Install the Application Package
-
Go to
<DATADIR>/bin/
and runcvadmin
. -
To deploy an application on your running instance, run the following command:
cvadmin apps install [args]
For example,
cvadmin apps install apps-file=onecall_app_v.xxx.zip
Where the args are:
Table 1. cvadmin apps install arguments Option Description [apps-file]
Path to the archive file containing the application you want to install. (Value type: FILE) [datadir]
Override DATADIR
variable. (Value type: FILE)[hostname]
Override HOSTNAME
variable. (Value type: STRING)[installdir]
Override INSTALLDIR
variable. (Value type: FILE)[instance]
Override instance
name variable. (Value type: STRING)[port]
Override port number variable. (Value type: PORT) [propertyFile]
Path to properties file containing variable mapping. (Value type: STRING). Once you have generated an application package using the
cvadmin cvapps generate
command, unzip the package to define the placeholders for the variables you want to use. You can define placeholders in any file in theconfig
directory.You can use the following placeholders:
-
${MYPARAMETER}
- If your property file contains a key namedMYPARAMETER
, the value will be replaced without any transformation. If it does not contain any key, there will be no replacement. -
${MYPARAMETER_CRYPTED}
- If your property file contains a key namedMYPARAMETER_CRYPTED
, the value will be replaced without any transformation. If it does not contain this key, a second lookup will be run to find theMYPARAMETER
key. If that key is found, the value will be first ciphered using the security key of the targetedDATADIR
and then replaced. If it does not contain any key, there will be no replacement. -
${VAR_+X}
- Calculates a new value using a well-formed integer variable as base. For example, if${VAR_+1}
is found in your property file, it searches theVAR
value and replaces${VAR_+1}
withVAR value + 1
. This is typically useful when you want to increment port numbers.
-