Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Capistrano
Search
Saugat Acharya
March 23, 2016
Technology
0
57
Capistrano
Automated deployments with Capistrano (Internal Talk at Leapfrog Technology)
Saugat Acharya
March 23, 2016
Tweet
Share
More Decks by Saugat Acharya
See All by Saugat Acharya
5-min-introduction-to-ASTs-in-javascript.pdf
mesaugat
0
190
Embracing Open Source
mesaugat
0
78
Why to JavaScript in 2018?
mesaugat
0
720
Asynchronous JavaScript
mesaugat
0
120
Other Decks in Technology
See All in Technology
2025-07-06 QGIS初級ハンズオン「はじめてのQGIS」
kou_kita
0
180
[SRE NEXT] ARR150億円_エンジニア140名_27チーム_17プロダクトから始めるSLO.pdf
satos
3
1.8k
第64回コンピュータビジョン勉強会「The PanAf-FGBG Dataset: Understanding the Impact of Backgrounds in Wildlife Behaviour Recognition」
x_ttyszk
0
140
shake-upを科学する
rsakata
7
910
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
54
22k
freeeのアクセシビリティの現在地 / freee's Current Position on Accessibility
ymrl
2
260
VS CodeとGitHub Copilotで爆速開発!アップデートの波に乗るおさらい会 / Rapid Development with VS Code and GitHub Copilot: Catch the Latest Wave
yamachu
2
300
PO初心者が考えた ”POらしさ”
nb_rady
0
230
60以上のプロダクトを持つ組織における開発者体験向上への取り組み - チームAPIとBackstageで構築する組織の可視化基盤 - / sre next 2025 Efforts to Improve Developer Experience in an Organization with Over 60 Products
vtryo
2
640
CDK Toolkit Libraryにおけるテストの考え方
smt7174
1
380
AI エージェントと考え直すデータ基盤
na0
17
6.9k
オーティファイ会社紹介資料 / Autify Company Deck
autifyhq
10
130k
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
Optimizing for Happiness
mojombo
379
70k
Mobile First: as difficult as doing things right
swwweet
223
9.7k
Building Applications with DynamoDB
mza
95
6.5k
[RailsConf 2023] Rails as a piece of cake
palkan
55
5.7k
Code Reviewing Like a Champion
maltzj
524
40k
Build The Right Thing And Hit Your Dates
maggiecrowley
36
2.8k
Facilitating Awesome Meetings
lara
54
6.5k
Being A Developer After 40
akosma
90
590k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.5k
Transcript
Deployment So#ware deployment is all of the ac5vi5es that make
a so#ware system available for use: • Copy/clone code • Run composer, npm, gulp • Run migra6ons • Reload the web server • No6fy about the deployment
Deployment Goals
1. One-click/command Deployment
2. Any'me/anywhere (Anyone with permission)
3. Zero Down+me Deployment
4. Reliable Rollbacks
5. Repeatable
6. Scalable
Why automated deployments?
1. Less error-prone Just run this command they said. It’s
straigh5orward they said. It can’t go wrong they said.
2. More (me for developing so3ware and less (me doing
stuff like this...
3. Release more frequently
A remote server automa,on and deployment tool wri4en in Ruby.
h"p:/ /capistranorb.com/
• Uses SSH • Does everything in parallel • Supports
Git, SVN, Mercurial • Easy to integrate with PHP projects • Mostly used with rails projects
Requirements • Ruby >= 1.9.3 • SSH access to all
servers with public keys (recommended)
Terminologies • Task • Recipe • Namespace • Role •
Stages
Task A concrete set of commands to execute.
Recipe A collec'on of tasks.
Namespace Organizes tasks within recipes and avoids naming collisions.
Role Servers can have different roles like: app, demo, web
Stages Refers to different set of environments (servers): dev, uat,
qa, staging, produc9on Can also include configura0on per stage or even different tasks.
Other Alterna+ves • Fabric - Python • Mina - Ruby
• Rocketeer - PHP • Shipit - Javascript • Deployer - PHP • CI Services like Travis CI, Circle CI, Jenkins
Demo
Thank you Let's hope your deployments won't be like this
from now on.