Preparing the Package Using the Deployment Tool

In this Topic Hide

Creating the Package

The Deployment Tool

 

Creating the Package

Zend's Deployment Tool allows you to create a skeleton package, and pack the contents into a .zpk package. For more information on the tool see The Deployment Tool.

Note:

The deployment feature is only available for Zend Server running on Apache and Zend Server Cluster Manager on Linux.

 

 

Instructions on how to complete a procedure

To create the package skeleton:

  1. Select a directory and use the create command (Linux: '<install_dir>/bin/zdpack create <application-name>'; Windows: zdpack.exe create <application-name>' where <application-name> is your application's name) to create the skeleton of your .zpk package. This includes the XML descriptor file, the data folder and the hook scripts (templates).

Go to the directory to see the resources that have been created:

    • Data folder - The folder that will contain your application files.

    • Scripts folder - The hook script skeletons available for you to edit as needed. For more information on the available scripts see Understanding the Package Structure.

    • deployment.xml file - The template of the XML descriptor for you to edit as needed.

  1. Perform the following actions:

    1. Place your application files in the data folder.

    2. Edit the hook scripts according to your needs.

    3. Edit the XML file as needed. The XML template is made up of example elements. The required elements are name, version and appdir. For more information see the The XML Descriptor File .  

    4. Validate the package by using the validate command (Linux: '<install_dir>/bin/zdpack validate [--schema=<xsd-file>] <package-xml-descriptor-file>'; Windows: 'zdpack.exe validate [--schema=<xsd-file>] <package-xml-descriptor-file>').

  2. Use the pack command (Linux: '<install_dir>/bin/zdpack pack <application-name>'; Windows: 'zdpack.exe pack <application-name>') to pack the contents into a .zpk package. By default, the Deployment Tool will create the package in the working directory.

Once you have a .zpk application package ready and packed, you can deploy your application or update an existing application.

The Deployment Tool

 The Deployment Tool usage includes the following:

The command line actions are:

Command Line Options:        

 

 

Related Links

Related Links:

Understanding the Package Structure
Deployment  

Deploying an Application

Deployment Methods - The deployment methods available in the Web API Reference Guide