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?
Note:
The deployment feature, including virtual host management, is only available for Zend Server running on Apache or nginx Web servers.
|
|
|
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 usage includes the following:
Usage - Run the help command from the bin directory to see the usage:
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. |
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. |