The silent deployment script is useful if you want to add the deployment of the Discover reference application to an install script, or push out the deployment on multiple machines.
The syntax to run the silent deployment is the following:
On Windows: deploy.bat –-app <FULL_PATH_TO_DESCRIPTOR_FILE> --install-config <FULL_PATH_TO_RESPONSE_FILE> --no-prompt
On UNIX: deploy.sh –-app <FULL_PATH_TO_DESCRIPTOR_FILE> --install-config <FULL_PATH_TO_RESPONSE_FILE> --no-prompt
where the options have the following values. Note that both options are required.
Option |
Description |
---|---|
FULL_PATH_TO_DESCRIPTOR_FILE |
The full path to the descriptor file that
uses CAS. For example,
|
FULL_PATH_TO_RESPONSE_FILE |
The full path to the response file which
is used by the silent deployment script. For example,
|
To deploy the Discover Electronics reference application silently:
Ensure that the Content Acquisition System is installed. (See the Endeca CAS Installation Guide.)
If you haven't already, create a directory for deployed Endeca applications, such as
C:\Endeca\Apps
on Windows, or/usr/local/endeca/apps
on UNIX.If you have logged into the Oracle Commerce Workbench and changed the admin password, run the
manage_credentials.bat
script to update credentials in the credential store.Navigate to the
<installation path>\ToolsAndFrameworks\<version>\credential_store\bin
directory on Windows, or the equivalent path on UNIX.Run the
manage_credentials.bat
script as follows:manage_credentials.bat add --key ifcr
Type
yes
when asked if you want to replace existing credential of type [password]
In a text editor, create the response file and save it as
cas_app_install_config.xml
in theC:\Users\<myname>\Downloads\OCxmgr_installer<version>-win64\cd\Disk1\install
directory.<install app-name="Discover"> <deployment-path>/localdisk/endeca/apps</deployment-path> <options> <option name="eac-port">8888</option> <option name="workbench-port">8006</option> <option name="dgraph1Port">15000</option> <option name="authoringDgraphPort">15002</option> <option name="logserverPort">15010</option> <option name="casPort">8500</option> <option name="casRoot">/localdisk/endeca/CAS/11.3.0</option> <option name="jps-config-location">/localdisk/endeca/ToolsAndFrameworks/11.3.0/server/workspace/credential_store/jps-config.xml</option> <option name="application-export-directory">/localdisk/endeca/ToolsAndFrameworks/11.3.0/server/workspace/state/repository</option> <option name="authoring-application-export-directory">/localdisk/endeca/ToolsAndFrameworks/11.3.0/server/workspace/state/generation_data</option> <option name="language-code">zh-CN</option> </options> </install>
The CAS-based version of the Discover Electronics Reference application is available in seven languages, with English as the default language.
From a command prompt, navigate to the
<installation path>\ToolsAndFrameworks\<version>\deployment_template\bin
directory on Windows, or the equivalent path on UNIX..Run the
deploy
script and specify all the options described above.
Example 3. Example
deploy.bat --app C:\Endeca\ToolsAndFrameworks\11.3.0\reference\discover-data-cas\deploy.xml --install-config C:\Users\<myname>\install\cas_app_install_config.xml --no-prompt