30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Working with Deployment<br />

Preparing the Package Using the Deployment Tool<br />

The Deployment Tool<br />

Zend's Deployment Tool allows you to create a skeleton package, and pack the contents into a .zpk<br />

package. The Deployment Tool usage includes the following:<br />

Tool location - The tool is located in: Linux - 'usr/local/zend/bin/zdpack'; Windows - 'C:Program<br />

Files\Zend\ZendServer\bin\zdpack' -OR- as a standalone (if downloaded separately from the<br />

product).<br />

Usage - Run the help command (Linux: './zdpack --help'; Windows: 'zdpack.exe --help') from the<br />

bin directory to see the usage.<br />

The command line actions are:<br />

Create a skelaton for new application<br />

create <br />

Validate a given zend package descriptor against the schema file<br />

validate [--schema=] <br />

Create a package. The pack options should contain pointers to the application data<br />

directory, the package descriptor file, and the package scripts directory.<br />

pack<br />

Command Line Options:<br />

package-directory<br />

A directory containing the data and the script directories, in addition to the package<br />

descriptor file.<br />

--src-dir=directory<br />

The directory that contains the application resources (PHP sources, JavaScript, etc.). The<br />

directory's internal structure must match the necessary structure for the application to be<br />

functional.<br />

--scripts-dir=directory<br />

The directory which contains the package deployment scripts. The Deployment Tool will<br />

search this directory for the expected files (as described in section 2.2.1) and then packs<br />

them.<br />

--package-descriptor=xml-file<br />

The package descriptor file.<br />

--output-dir=directory<br />

The directory in which the package is created. The package name will be created as<br />

"-.zpk".<br />

156

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

Saved successfully!

Ooh no, something went wrong!