publishstore utility
Use the publishstore script to publish store archives from a command line.
./publishstore.sh -svr myhost -userid wcsadmin -pwd wcsadmin -sar $WCS_HOME/starterstores/ConsumerDirect/ConsumerDirect.sar -paramfile $WCS_HOME/ConsumerDirect.propertiesParameters...
-svr Fully qualified TCP/IP name of the WebSphere Commerce Server. For a remote web server, use the hostname of the remote web server. -userid WCS Site Administrator's user ID -pwd WCS Site Administrator's password. -sar Full path of the store archive on the host machine. -paramfile The full file path to the custom parameters file on the host machine. Overrides store default parameters. This file is not included with WCS and must be created before being used. The publishstore script does the following:
- Creates a session and logs on to the running WCS Server (svr) using the user ID (userid) and password (pwd).
- Issues a request to publish the store archive (sar).
- Displays the scheduled publish job number.
- Polls the server and displays the status of the publishing job.
After publishing the ConsumerDirect or B2BDirect store, copy these files. (For B2BDirect, substitute "B2BDirect" for "ConsumerDirect"):
cp $PROFILE_HOME/installedApps/cell/WC_EAR/Stores.war/StoreAssetsDir $PROFILE_HOME/installedApps/cell/WC_EAR/Stores.war/ConsumerDirect
cp $PROFILE_HOME/installedApps/cell/WC_EAR/Stores.war/WEB-INF/classes/StoreAssetsDir $PROFILE_HOME/installedApps/cell/WC_EAR/Stores.war/WEB-INF/classes/ConsumerDirect
cp $PROFILE_HOME/installedApps/cell/WC_EAR/Stores.war/WEB-INF/stores/StoreAssetsDir $PROFILE_HOME/installedApps/cell/WC_EAR/Stores.war/WEB-INF/stores/ConsumerDirect
cp $PROFILE_HOME/installedApps/cell/WC_EAR/Stores.war/WEB-INF/xml/tools/stores/StoreAssetsDir $PROFILE_HOME/installedApps/cell/WC_EAR/Stores.war/xml/tools/stores/ConsumerDirect
cp $PROFILE_HOME/installedApps/cell/WC_EAR/Stores.war/WEB-INF/tools/stores/StoreAssetsDir $PROFILE_HOME/installedApps/cell/WC_EAR/Stores.war/tools/stores/ConsumerDirect