Preparing the Application Package Using the Deployment Tool
The following procedures explain how to create the application package (.zpk), which contains the data, scripts, and an XML descriptor file for your application.
What is the application package?
How do I deploy the application package?
Note:
The deployment feature, including virtual host management, is only available for Zend Server running on Apache or nginx Web servers.
Creating the Package
|
|
|
To create the package skeleton:
|
Once you have a .zpk application package ready and packed, you can deploy your application or update an existing application. |
Zend 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'
-
Usage - Run the help command from the bin directory to see the usage:
- Linux: '<install_dir>/bin/zdpack --help'
- Windows: 'zdpack.exe --help')
Command Line Actions
Action |
Description |
create <application-name> |
Create a skeleton for new application |
validate [--schema=<xsd-file>] <package-xml-descriptor-file> |
Validate a given Zend package descriptor against the schema file |
pack |
Create a package. The pack options should contain pointers to the application data directory, the package descriptor file, and the package scripts directory. |
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. |