Application Deploying With Zend Server 5.5 Beta

  • 1,208 views
Uploaded on

This is the slide deck of the Zend webinar "Application Deployment With Zend Server 5.5 Beta". …

This is the slide deck of the Zend webinar "Application Deployment With Zend Server 5.5 Beta".

Join Kevin Schroeder, Zend Technology Evangelist, for a look at how Zend Server 5.5 helps streamline the application deployment process and helps bring consistency and automation to the entire application lifecycle. If you’re already trying out the beta, you’ll learn how to leverage its application deployment features, and if you’re not, you’ll learn how to take it for a test drive.

You can watch the related webinar at http://bit.ly/neHP9n, after a short registration.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • This is the slide deck of the Zend webinar 'Application Deploying With Zend Server 5.5 Beta'.

    You can watch the related webinar at http://bit.ly/neHP9n, after a short registration.
    Are you sure you want to
    Your message goes here
    Be the first to like this
No Downloads

Views

Total Views
1,208
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
1
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Application DeploymentWith Zend Server 5.5 BetaKevin SchroederTechnology EvangelistZend TechnologiesTo watch the webinar please go to:http://www.zend.com/en/webinar/Server/70170000000bb2t-webinar-application-deploying-with-zs-5.5-beta-20110719.flv © All rights reserved. Zend Technologies, Inc.
  • 2. About KevinPast: Programming/Sys AdminCurrent: Technology Evangelist/Author/Composer @kpschrade © All rights reserved. Zend Technologies, Inc.
  • 3. Follow us! Zend Technologies http://twitter.com/zend http://twitter.com/kpschrade (me!) © All rights reserved. Zend Technologies, Inc.
  • 4. Join us at ZendConThe premier PHP conference!October 17-19, 2011 – Santa Clara, CA Conference Themes Conference Highlights Cloud Computing •Sessions focused on how to best develop and deploy Learn about the latest developments in PHP Cloud infrastructure, management and application services PHP Mobile and User Experience •Sessions designed for all knowledge levels Learn how to build engaging mobile apps with the latest PHP •Intensive tutorials for accelerated learning technologies and tools •PHP Certification crash courses and testing Enterprise and Professional PHP Explore PHP best practices, new technologies and practical •Exhibit hall showcasing the latest products tips with industry experts •Special networking opportunities during meals and events www.zendcon.com © All rights reserved. Zend Technologies, Inc.
  • 5. Agenda• Application Deployment With Zend Server 5.5 beta  Also called “What’s new in beta land!”• Introduction• Workflow• Deployment Configuration• Third Party Integration © All rights reserved. Zend Technologies, Inc.
  • 6. © All rights reserved. Zend Technologies, Inc.
  • 7. Two methods, same end Zend Server Zend Server Zend Server Zend Server Zend Server Zend Server Zend Server Cluster Zend Server Manager Zend Server Zend Server Zend Server Zend Server Zend Server © All rights reserved. Zend Technologies, Inc.
  • 8. Starting with the basics• Install Zend Server 5.5 beta © All rights reserved. Zend Technologies, Inc.
  • 9. Workflow Init Edit Create Create Upload to Deployment deployment package Project Zend Server Package .xml (zdpack) © All rights reserved. Zend Technologies, Inc.
  • 10. zdpack zdpack --help | [--scripts-dir=<directory>] [--lint] [--schema=<xsd-file>] [--src-dir=<directory>] [--output-dir=<directory>] [--php-exe=<php-executable>] [--package-descriptor=<xml-file>] zdpack pack [package-directory] zdpack create <application-name> zdpack validate [--schema=<xsd-file>] <package-xml-descriptor-file> © All rights reserved. Zend Technologies, Inc.
  • 11. Structure of a default deploymentdata/index.phpdata/LICENSE.txtdeployment.xmlscripts/post_activate.phpscripts/post_deactivate.phpscripts/post_stage.phpscripts/post_unstage.phpscripts/pre_activate.phpscripts/pre_deactivate.phpscripts/pre_stage.phpscripts/pre_unstage.php © All rights reserved. Zend Technologies, Inc.
  • 12. Editing the Deployment Descriptor• name – Name of the application• summary – Short summary• description – Long Description• version – Application version• eula – relative link to a licensing agreement• appdir – relative link to the main application directory• docroot – the public document root• scriptsdir – directory where the deployment scripts live• baseUrl – base URL of where the application will be deployed• dependencies – PHP-level requirements  php• extension – required PHP extensions  name• Directive – directive configuration limits  name © All rights reserved. Zend Technologies, Inc.
  • 13. Creating a hook• Predefined constants  ZS_RUN_ONCE_NODE  ZS_WEBSERVER_TYPE - will contain a code representing "IIS" or "APACHE“  ZS_WEBSERVER_VERSION - will contain the web server version  ZS_WEBSERVER_UID - will contain the web server user id  ZS_WEBSERVER_GID - will contain the web server user group id  ZS_PHP_VERSION - will contain the PHP version Zend Server uses  ZS_APPLICATION_BASE_DIR - will contain the directory to which the deployed application is staged.  ZS_CURRENT_APP_VERSION - will contain the version number of the application  ZS_PREVIOUS_APP_VERSION - will contain the previous version number of the application  ZS_* - User defined parameters • db_host == ZS_DB_HOST © All rights reserved. Zend Technologies, Inc.
  • 14. Demonstrating deployment © All rights reserved. Zend Technologies, Inc.
  • 15. Scripting Deployment• Requires use of the Zend Server API• A wealth of unofficial tooling has sprung up around deployment• http://code.google.com/p/zend-sdk/  Eclipse plugin! • http://code.google.com/p/zend-sdk/wiki/ZendSdkEclipsePlugin  CLI tooling• http://code.google.com/p/zend-hudson-plugin/ © All rights reserved. Zend Technologies, Inc.
  • 16. Demonstrating the Eclipse plugin © All rights reserved. Zend Technologies, Inc.
  • 17. Zend-SDK• Connects to Zend Server /w the Zend Server APIValid actions are composed of a verb and an optional direct object: create project : Creates a new Zend project. update project : Updates a Zend project. list targets : Lists known deployment target environments. add target : Adds new target environment for deploying applications. remove target : Removes target from the know targets list. detect target : Detects target on localhost. update target : Updates targets parameters. list applications : Lists applications installed on target. deploy application : Deploys application to target. redeploy application : Re-deploys application on target. update application : Updates application to target. remove application : Removes application from target. discover application : discover new application from the repositories list. create package : Creates deployment package. add repository : Add repository to the discovery list. remove repository : Removes repository from the discovery list. list repositories : Show the list of repositories. generate repository : genertae a repository for a package help : shows help information. © All rights reserved. Zend Technologies, Inc.
  • 18. Demonstrating the SDK © All rights reserved. Zend Technologies, Inc.
  • 19. Source Control Integration © All rights reserved. Zend Technologies, Inc.
  • 20. Hudson/Jenkins/CI Integration(work in progress) © All rights reserved. Zend Technologies, Inc.
  • 21. Questions? Follow us! Zend Technologies http://twitter.com/zend http://twitter.com/kpschrade (me!) © All rights reserved. Zend Technologies, Inc.
  • 22. WebinarTo watch the webinar please go to:http://www.zend.com/en/webinar/Server/70170000000bb2t-webinar-application-deploying-with-zs-5.5-beta-20110719.flvorhttp://bit.ly/neHP9n(short registration required) © All rights reserved. Zend Technologies, Inc.