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
62
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Capistrano
Automated deployments with Capistrano (Internal Talk at Leapfrog Technology)
Saugat Acharya
March 23, 2016
More Decks by Saugat Acharya
See All by Saugat Acharya
5-min-introduction-to-ASTs-in-javascript.pdf
mesaugat
0
200
Embracing Open Source
mesaugat
0
93
Why to JavaScript in 2018?
mesaugat
0
750
Asynchronous JavaScript
mesaugat
0
120
Other Decks in Technology
See All in Technology
WEBフロントエンド研修【MIXI 26新卒技術研修】
mixi_engineers
PRO
1
330
AWS環境のセキュリティ不安を解消した企業事例 ~よくある課題と対策を一挙公開~
asanoharuki
0
190
OPENLOGI Company Profile for engineer
hr01
1
75k
データベース研修【MIXI 26新卒技術研修】
mixi_engineers
PRO
1
340
AIコード生成×サプライチェーン攻撃 — PHPが直面する“二重の信頼問題
shinyasaita
0
490
Vポイント分析基盤におけるデータモデリング20年史
taromatsui_cccmkhd
4
770
【公開用】AI_Dev_Ex2026_AI_登壇資料
matsuritechnologies
PRO
2
640
QA・ソフトウェアテスト研修【MIXI 26新卒技術研修】
mixi_engineers
PRO
1
650
大 AI 時代におけるC# の事情 ~ぶっちゃけトークを交えながら~
nenonaninu
1
210
人とエージェントが高め合う協業設計
kintotechdev
0
950
プロダクト開発組織の現在地(Ver.2026/07) / product-organization
kaonavi
0
520
変更し続けられるシステムをどう保つか — AI時代のSSoTという設計原則
kawauso
1
1.3k
Featured
See All Featured
Technical Leadership for Architectural Decision Making
baasie
3
450
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
640
Test your architecture with Archunit
thirion
1
2.3k
Optimising Largest Contentful Paint
csswizardry
37
3.8k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.3k
Deep Space Network (abreviated)
tonyrice
0
230
Google's AI Overviews - The New Search
badams
0
1.1k
Bash Introduction
62gerente
615
220k
We Are The Robots
honzajavorek
0
280
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.7k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
67
56k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.8k
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.