30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Zend Server <strong>Reference</strong> Manual<br />

Creating the Package<br />

Note:<br />

The deployment feature is only available for Zend Server running on Apache and Zend Server Cluster<br />

Manager on Linux.<br />

158<br />

To create the package skeleton:<br />

1. Go to the bin directory (Linux: 'usr/local/zend/bin'; Windows: 'C:Program<br />

Files\Zend\ZendServer\bin') and use the create command (Linux: './zdpack create<br />

'; Windows: zdpack.exe create ' where<br />

is your application's name) to create the skeleton of your .zpk<br />

package. This includes the XML descriptor file , the data folder and the hook scripts<br />

(templates).<br />

2. Go to the bin/ directory to see the resources that have been created:<br />

Data folder - The folder that will contain your application files.<br />

Scripts folder - The hook script skeletons available for you to edit as needed.<br />

For more information on the available scripts see Understanding the Package<br />

Structure.<br />

deployment.xml file - The template of the XML descriptor for you to edit as<br />

needed.<br />

3. Perform the following actions:<br />

a. Place your application files in the data folder.<br />

b. Edit the hook scripts according to your needs.<br />

c. Edit the XML script as needed. The XML template is made up of example<br />

elements. The required elements are name, version and appdir. For more<br />

information see the The XML Descriptor File .<br />

4. Use the pack command (Linux: ‘./zdpack pack '; Windows:<br />

'zdpack.exe pack ') to pack the contents into a .zpk package. By<br />

default, the Deployment Tool will create the package in the working directory.<br />

5. Validate the package by using the validate command (Linux: './zdpack validate [-schema=]<br />

'; Windows: 'zdpack.exe validate [-schema=]<br />

').<br />

Once you have a .zpk application package ready and packed, you can deploy your application or update<br />

an existing application.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!