Preparing the Package Using the Deployment Tool
The following procedures explain how to create the library package (.zpk), which contains the data, scripts, and an XML descriptor file for your library.
How do I deploy the library package?
Creating the Package
|
To create the package skeleton:
|
Once you have a .zpk library package ready and packed, you can deploy your library or update an existing library. |
The Deployment Tool
The Deployment Tool usage includes the following:
- Tool location - The tool is located in:
- Linux - '/usr/local/zend/bin/zdpack'
-
Windows - 'C:Program Files\Zend\ZendServer\bin\zdpack'
-OR-
as a standalone (if downloaded separately from the product).
-
Usage - Run the help command from the bin directory to see the usage:
- Linux: '<install_dir>/bin/zdpack --help'
- Windows: 'zdpack.exe --help')
Library Command Line Actions
Action |
Description |
create <library-name> |
Create a skeleton for new library |
validate [--schema=<xsd-file>] <package-xml-descriptor-file> |
Validate a given Zend package descriptor against the schema file |
pack <library-name> |
Create a library package. The pack options should contain pointers to the application data directory, the package descriptor file, and the package scripts directory. |
Library Command Line Options
Option |
Description |
package-directory |
A directory containing the data and the script directories, in addition to the package descriptor file. |
--src-dir=directory |
The directory that contains the application resources (PHP sources, JavaScript, etc.). The directory's internal structure must match the necessary structure for the application to be functional. |
--scripts-dir=directory |
The directory which contains the package deployment scripts. The Deployment Tool will search this directory for the expected files (as described in section 2.2.1) and then packs them. |
--package-descriptor=xml-file |
The package descriptor file. |
--output-dir=directory |
The directory in which the package is created. The package name will be created as "<app-name>-<app-version>.zpk". |
--php-exe=php-executable |
The PHP executable to use for lint. |
--lint |
Performs a PHP lint test on the deployment scripts before creating the package. |
--help |
Displays the tool's usage. |
--schema=xsd-file |
The path to the package descriptor schema used for validation. |