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