PHP Deployment With Capistrano

4,898 views

Published on

Published in: Technology
0 Comments
8 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,898
On SlideShare
0
From Embeds
0
Number of Embeds
175
Actions
Shares
0
Downloads
67
Comments
0
Likes
8
Embeds 0
No embeds

No notes for slide
  • PHP Deployment With Capistrano

    1. 1. PHP Deployment with Capistrano PHPBelgium Event – 21/10/2008
    2. 2. About me <ul><li>Jeroen Serpieters </li></ul><ul><li>PHP Consultant (ZCE) </li></ul><ul><li>Ausy Belgium, Zend Partner in the Belux </li></ul><ul><li>www.ausy.be </li></ul>
    3. 3. Goal of this presentation <ul><li>Show an automated way of deployment </li></ul><ul><li>Convince you of using an automated deployment process </li></ul><ul><li>Convince you of using Capistrano ;-) </li></ul>
    4. 4. Capistrano
    5. 5. What? <ul><li>Open Source tool to deploy web applications </li></ul><ul><li>Specifically aimed at RoR deployment </li></ul><ul><li>But, just as well an all round automation tool </li></ul>
    6. 6. What can it do for you? <ul><li>Set up your web application environment </li></ul><ul><li>Deploy your code </li></ul><ul><li>Deploy your database </li></ul><ul><li>Manage your releases </li></ul>
    7. 7. Why? <ul><li>Human beings tend to be error-prone </li></ul><ul><ul><li>Computers don’t </li></ul></ul><ul><li>Save valuable time </li></ul>
    8. 8. How?
    9. 9. ...or...
    10. 10. Prerequisites for the servers <ul><li>SSH Access </li></ul><ul><li>POSIX shell </li></ul><ul><li>Identical passwords for all servers or PKI </li></ul>
    11. 11. Getting started!
    12. 12. Terminology <ul><li>Recipe </li></ul><ul><li>Task </li></ul><ul><li>Namespace </li></ul><ul><li>Role </li></ul>
    13. 13. Installation <ul><li>Install Ruby on your client </li></ul><ul><li>Install Ruby Gems </li></ul><ul><li>Install Capistrano </li></ul><ul><ul><li>cap </li></ul></ul><ul><ul><li>capify </li></ul></ul>
    14. 14. “ Capifying” <ul><li>Use capify inside your project </li></ul><ul><ul><li>./Capfile </li></ul></ul><ul><ul><li>./config/deploy.rb </li></ul></ul>
    15. 15. Prepare the server <ul><li>Only on the first deployment </li></ul><ul><li>Set up the default file structure </li></ul>
    16. 16. Initial deployment tree
    17. 17. After deployment
    18. 18. Demo
    19. 19. Round Up <ul><li>Advantages </li></ul><ul><ul><li>Less work </li></ul></ul><ul><ul><li>Less error prone deployment </li></ul></ul><ul><li>Disadvantages </li></ul><ul><ul><li>Deployment client </li></ul></ul>
    20. 20. Q & A
    21. 21. Resources <ul><li>The Absolute Moron’s Guide to Capistrano </li></ul><ul><ul><li>http://www.softiesonrails.com/ </li></ul></ul><ul><li>Deploying Rails Applications </li></ul><ul><ul><li>http://pragprog.com/ </li></ul></ul><ul><li>My Blog :-) </li></ul><ul><ul><li>http:// blog.lunitechs.be/ </li></ul></ul>
    22. 22. Thanks!

    ×