Administer > Deploy > Overview: WebSphere Commerce Build and Deployment tool > Configure and run the server deployment process


Set up the static Web server assets deployment Ant script

In order to support deployment of static Web server assets to a remote web server with different file transfer methods, the server deployment scripts require users to provide a custom static Web server assets deployment Ant build file that is executed as part of the server deployment process. Follow the steps in this file on the server deployment system to set up one of the provided samples for use in the build process.

If you do not have static Web server assets to deploy, you may skip this section.

Sample scripts for some popular file transfer protocols are provided out-of-the-box in the WCBD_DEPLOY_SERVER/static-web-deploy directory, including:

protocol refers to one of ftp, local or scp that suits the environment.

If the file transfer protocol used in the customization project is not one to which sample scripts are provided, develop custom scripts as per process described in the Customize the server deployment process topic.


Procedure

  1. If WCBD_DEPLOY_SERVER/static-web-deploy/wcbd-sample-static-web-deploy-protocol.private.properties exists, copy the file as WCBD_DEPLOY_SERVER/static-web-deploy-protocol.private.properties.

  2. Copy WCBD_DEPLOY_SERVER/static-web-deploy/wcbd-sample-static-web-deploy-protocol.properties as WCBD_DEPLOY_SERVER/static-web-deploy-protocol.properties.

  3. Copy WCBD_DEPLOY_SERVER/static-web-deploy/wcbd-sample-static-web-deploy-protocol.xml as WCBD_DEPLOY_SERVER/static-web-deploy-protocol.xml.

  4. Change the file permission with the following command:

    chmod 755 WCBD_DEPLOY_SERVER/static-web-deploy-protocol.*

  5. Open WCBD_DEPLOY_SERVER/static-web-deploy-protocol.xml with a text editor and replace the name attribute of the root project element from wcbd-sample-static-web-deploy-protocol to static-web-deploy-protocol.

    For example, if the file transfer protocol is FTP, then WCBD_DEPLOY_SERVER/static-web-deploy-ftp.xml should have the following line:

    • <project name="wcbd-sample-static-web-deploy-ftp" default="all">

    changed to:

    • <project name="static-web-deploy-ftp" default="all">

  6. If step 1 is applicable, open WCBD_DEPLOY_SERVER/static-web-deploy- protocol.private.properties with a text editor and edit the properties according to the comments in the file. Properties in this file will be encoded when the deployment process is run.

  7. Open WCBD_DEPLOY_SERVER/static-web-deploy-protocol.properties with a text editor and edit the properties according to the comments in the file.


Previous topic: File structure of the server deployment directory


Next topic: Set up the WebSphere Commerce configuration file synchronization Ant script


+

Search Tips   |   Advanced Search