Weitere ähnliche Inhalte Mehr von Zend by Rogue Wave Software (20) Kürzlich hochgeladen (20) Deployment Without the Chaos!1. Deployment Without
the Chaos!
By Eric Ritchie (eric@zend.com)
To watch the recorded webinar please go to:
http://bit.ly/H3vI6V
© All rights reserved. Zend Technologies, Inc.
2. Eric Ritchie bids you welcome!
• Senior Technical Consultant and Trainer
at Zend Technologies
• Zend Framework and PHP 5.3 ZCE
• Seventeen years of system administration experience
• Eleven years of PHP (3,4 & 5) and five years Zend
Framework development experience
• Hobbies: Sampling good wines/whiskies
(gifts welcome)
© All rights reserved. Zend Technologies, Inc.
3. The good old days of PHP development?
• A few developers working directly on a single server
SSH/Samba
© All rights reserved. Zend Technologies, Inc.
4. The professional version...
Version Control Server Testing/QA
Subversion/Git
Deploy
Deploy
Development Production
Workstation Local Disk Web Server /
Storage
Cluster
d
HTTP Virtual
Web
Appliance
© All rights reserved. Zend Technologies, Inc.
5. Managing deployment
• Potential nightmare senario:
Testing server controlled by integration team / Sysops
Production server controlled by Sysops
Only developers should need to know how to deploy
• Fast path to tranquility:
Zend Server 5.6 Deployment features
Zend Studio 9.0.1 Deployment tools
Zend SDK
© All rights reserved. Zend Technologies, Inc.
6. Demo...
Local Development and
Simple Deployment
© All rights reserved. Zend Technologies, Inc.
7. Prerequisites
• Helps prevent deployment to incompatable targets
• Various tests possible:
PHP version
Required PHP modules
Required PHP settings
Zend Framework version
Zend Server version
Required Zend Server modules
© All rights reserved. Zend Technologies, Inc.
9. Triggers & variables
• Scripts are called at various points in the deploy process
Deploy (Stage/Activate)
Rollback
Remove (Deactivate/Un-stage)
• Some helpful constants are defined automatically
Version number
Application base path
Etc.
• User defined constants possible, supplied by the user at
deployment time
© All rights reserved. Zend Technologies, Inc.
10. Demo...
Triggers and
Variables
© All rights reserved. Zend Technologies, Inc.
11. Rollback (or <Ctrl>Z)
• Ok, we deployed and our website is down... What now?
Check the PHP error log?
Check Zend Server event monitoring?
Yell at the developers!
Develop a fix and redeploy...
• Nah, better to act now and ask questions later:
Undo!
You can still check your logs while your website runs
© All rights reserved. Zend Technologies, Inc.
13. Zend SDK
• Command line tool that allows (amongst other things):
Creation of project templates (Hello World)
Project check out from Git
Prepare projects for deployment
Deploy to multiple Zend Server / Cluster Manager instances
Etc.
• Used internally by Zend Studio 9
• Open source project
• Download it here: http://code.google.com/p/zend-sdk/
© All rights reserved. Zend Technologies, Inc.
14. Web API
• Webservice based API that allows (amongst other things):
Expansion/shrinking of an application cluster
Deploy to local or remote Zend Server / Cluster Manager instances
Changing the GUI password
Acceptance of Zend Server EULA
Retrival of monitoring data
Retrieval of code tracing data
Etc.
© All rights reserved. Zend Technologies, Inc.
15. Demo...
Command Line
Deployment using
the Web API
© All rights reserved. Zend Technologies, Inc.
16. Cloud topics
• What happens when ″booting″ a new cloud server?
You get a shiny new bare bones Linux server, that‘s all*
What about your application?
• Let‘s see what happens...
© All rights reserved. Zend Technologies, Inc.
17. Demo...
Cluster Expansion
© All rights reserved. Zend Technologies, Inc.
18. Package customisation
• Possible to adjust the deployment package when:
Not the complete project should be deployed
Project contains some static elements (libraries)
© All rights reserved. Zend Technologies, Inc.
19. So long...
• …and thanks for all the fish.
© All rights reserved. Zend Technologies, Inc.
20. Webinar
To watch the recorded webinar, please go to:
http://www.zend.com/en/resources/webinars/zend-
server#DChaos
or
http://bit.ly/H3vI6V
© All rights reserved. Zend Technologies, Inc.