Synchronization of files to the Commerce IHS web server
The deployed WebSphere Commerce environment includes an automated process that runs to synchronize files to the Commerce IBM HTTP Server (IHS) web server (or servers).
On the Standalone WebSphere Commerce server, both the EAR directory and the instance web
directory are exported as a shared file system. When the WebSphere Commerce web server host (or
hosts) starts, it runs the script
/opt/IBM/VSP/Commerce/createWebServerComm/syncStaticFiles.sh. This script is
registered under /etc/rc.d/rc.local. The script completes the following
actions:
- Mounts the shared directories to similar paths under /mnt
- Starts a child process that synchronizes the directory ${WCInstallDir}/instances/${instanceName}/web once every 100 minutes. This process runs in the background and continues to do the synchronizing unless it is stopped or fails.
- Starts a child process that synchronizes the directory ${PROFILE_ROOT}/DefaultAppSrv01/installedApps/${CELL_NAME}/WC_${instanceName}.ear once every 10 minutes. This process runs in the background and continues to do the synchronizing unless it is stopped or fails.
The results of the synchronization are logged in /opt/IBM/VSP/Commerce/logs/syncWebServerFiles.log.