You will be working with an existing GitHubGitHub is a web-based hosting service for software development projects that use the Git revision control system. GitHub offers both commercial plans and free accounts for open source projects. project and its deployment.xml
file to customize your application’s deployment and to create a
In this tutorial you will learn:
To create a new project from GitHub in Zend Studio: You will be provided with an existing GitHub account and project. For more information, see Creating a GitHub Account.
To work with your project's deployment.xml file: Launching a project in Zend Studio with deployment support creates a deployment.xml file. This file enables you to customize your application before the packaging process.
To create a ZPK package: Packaging your application enables you to export it to other members of the working process for testing and evaluation.
For this tutorial we will provide you with the following:
The GitHub project you will be working with.
The post-tutorial finished GitHub project. Click here to download.
Code for inserting into the project's files. Click here to download the .zip file, or go to Tutorial Code.
Zend Studio 9.0 or above which can be downloaded from the Zend Studio Downloads page. For information on installation see the Zend Studio Installation Guide.
Zend Server 5.5 or above which can be downloaded from the Zend
Server Downloads page . For more information see the Zend Server Installation Guide.
The Zend Server Installer includes optional components that can be
downloaded as a part of the installation process. For this tutorial
you will need to install the MySQL component.
For this tutorial you will first need to create a GitHub project in Zend Studio. You will be importing an existing GitHub project that we have provided for the purposes of this tutorial.
For information on creating a GitHub account and project, see http://help.github.com
|
|
|
To create a new project from GitHub in Zend Studio:
Note: It is recommended that you save a copy of your project on your machine before continuing this procedure. |
|
The project we have created was not defined to include Application Deployment Support. In order to work with the deployment.xml file and create the ZPK application package, Application Deployment Support must be enabled.
|
|
|
To enable deployment: Add deployment support to your project by right-clicking your
project in the PHP Explorer view and select Configure
| Add Application Deployment Support.
|
|
You will now learn how to edit the deployment.xml file before creating the ZPK package. The deployment.xml file allows you to customize the deployment settings for your application.
After enabling Application Deployment Support, the deployment.xml file appears. The following procedure is according to the tabs in the file.
|
|
|||||||||||||||||||||||||
|
Overview TabIn the Overview tab, enter general information about the project:
Dependencies TabBefore deployment, Zend Server checks that the target's settings match the application defined dependencies.
Triggers TabThe Triggers tab includes the Deployment Scripts area and the Variables and Parameters area.
Deployment ScriptsYou will now create new files that include the deployment scripts for this tutorial project.
Parameter ScriptThis file is used for converting user-entered parameters and built-in environment parameters to local php parameters that can be used by all the script files.
Additional Scripts
Note: The "TABLE_PLACEHOLDER" string will be used in the subsequent create_table.php file.
Variables and ParametersAdd parameters that are used in the hook scripts. You will enter the value of the parameters during the deployment process.
Package TabIn the Scripts Directory Content, we define which files to include in the package.
|
|||||||||||||||||||||||||
|
You will now test the application by launching it on your development server.
|
|
|
To launch the application:
|
|
You will now package the application into a ZPK file. This makes your application portable and accessible by creating a file that can easily be sent to other members of the work process.
|
|
|
To package your application:
|
|
|
|
|
Related Links: |
|
|
©1999-2012 Zend Technologies LTD. All rights reserved.