Manually editing the service configuration files
The service configuration files give you access to options that are not available in the Spotfire Server administrative interface. You can edit these files to create and save as many service configurations as your Spotfire implementation requires, and then apply the customized configurations to new or existing Spotfire Automation Services or Spotfire Web Player services.
- On the computer running Spotfire Server, open a command line as an administrator and change the directory to the location of the config.bat file (config.sh on Linux). The default location is <server installation dir>/tomcat/bin.
On the command line, export the service configuration that you want to modify from
Spotfire Server by using the
export-service-config command. Specify the service's capability and the deployment area, and optionally the configuration name.
Note: By default, all new services receive a "Default" configuration. The properties of the default configuration cannot be changed, but you can edit the configuration files and save the resulting configuration with a new name.Important: If you are editing a service configuration that has been applied to an existing service, you must verify the name of the active service configuration before you export it. If the name of the active configuration is not "Default", you must specify the name in the export command. To find the name of the active service configuration, see Viewing the name of the active service configuration.
config export-service-config --capability=AUTOMATION_SERVICES --deployment-area=ProductionExample for exporting a customized configuration:
config export-service-config --capability=AUTOMATION_SERVICES --deployment-area=Production --config-name=AutomationServicesConfigurationThe following configuration files are exported. By default, these files are saved to the <server installation dir>\tomcat\bin\config\root directory.
- Edit the exported configuration files in a text editor or XML editor. For details about these files, see Service configuration files.
On the command line, import the customized configuration file back into
Spotfire Server and name the configuration by using the
Note: If the configuration to be imported was created from the default configuration, a new name must be specified.
config import-service-config --config-name=ServiceConfiguration
On the command line, assign the created configuration to an existing service:
config set-service-config --service-id=value --config-name=ServiceConfigurationTip: Use the list-services command to obtain the service ID.