Skip to content

Deploy an existing application

wgalanciak edited this page Aug 8, 2013 · 4 revisions

Introduction

The following example walks you through deploying your old PHP application to selected target (Zend Server or phpCloud).

Prerequisites

  • Target with id = 0.

###Commands

# go to the root folder of the old PHP project
$ cd <path_to_project>/<project_name>

# update your old PHP project by generating all files which are required for deployment
$ zend update project

# deploy the old application to the target with id = 0
$ zend deploy application -t 0

Details

In more details, we start by updating an existing project. In the result of this process deployment.xml and deployment.properties files are added to the project. Those files are generated automatically so they may not detect all necessary files in the case of unexpected project structure. To be sure that deployment.xml file is generated correctly check if public tag is available and has following structure:

<public>appdir_folder/path_to_index</public>

where path_to_index is a path to the folder where index.php is located (relative to the project root) and appdir_folder is a value of appdir tag. By default, update process checks if there is public folder in the project root. If it is not available, then public tag is not added (in this case yo should add it manually). By default, deployment.properties files add all folders from project root to appear. To read more about properties file, check here.

Second command is responsible for deploying just updated application to the target with id equals to 0.

Clone this wiki locally