Configuring the server deployment settings
Configure your server deployment settings before running the server deployment script. These settings consist of important information like software installation paths and key information about your WebSphere Commerce server.
About this task
General rules that apply to the configuration of the settings files:
- Paths in batch files should use the backward slash '\' as the file separator
- Paths in shell scripts should use the forward slash '/' as the file separator.
- Paths in properties files should use the forward slash '/' as the file separator, even for Windows systems.
- Classpaths in batch files should use semicolons ';' as entry separators.
- Classpaths in shell scripts should use colons ':' as entry separators.
Tip: To
save time when configuring a new server deployment package, you can provide the following assets,
and include them in WCBD_installdir/deploy/server on the
build system:
- a fully or partially preconfigured, static web assets deployment Ant script
- a WebSphere Commerce configuration file synchronization Ant script
- target-specific properties files
These assets are included in the server deployment package, thereby reducing the amount of configuration required.
Procedure
- Copy WCBD_deploy_server_dir/wcbd-setenv.bat.template as WCBD_deploy_server_dir/setenv.bat.
- Copy WCBD_deploy_server_dir/wcbd-setenv.template as WCBD_deploy_server_dir/setenv.
- Copy WCBD_deploy_server_dir/wcbd-deploy.private.properties.template as WCBD_deploy_server_dir/deploy-target-env.private.properties, where target-env is an identifier for the target environment.
- Copy WCBD_deploy_server_dir/wcbd-deploy.properties.template as WCBD_deploy_server_dir/deploy-target-env.properties.
-
Change the file permissions with the following commands:
chmod 750 WCBD_deploy_server_dir/setenv
chmod 640 WCBD_deploy_server_dir/deploy-target-env.*
-
Open WCBD_deploy_server_dir/setenv.bat with a text
editor and set the following:
-
ANT_HOME
to Ant_installdir -
WAS_HOME
to WAS_installdir
-
-
Open WCBD_deploy_server_dir/setenv with a text editor
and set the following:
-
ANT_HOME
to Ant_installdir -
WAS_HOME
to WAS_installdir
-
- Open WCBD_deploy_server_dir/deploy-target-env.private.properties with a text editor and configure the properties in the file by referring to the Security-sensitive server deployment configuration properties topic.
-
Open
WCBD_deploy_server_dir/deploy-target-env.properties
with a text editor and configure the properties in the file by referring to the Server deployment configuration properties
topic.
Tip: To save time when configuring a new server deployment package, you can provide the fully or partially preconfigured, target-environment-specific properties files and include them in the WCBD_installdir/deploy/server directory on the build system. Such assets are included in the new server deployment package, reducing the amount of configuration required.
- For more information, see Advanced server deployment features and apply features that suit your deployment needs.