Capistrano
Still Uploading Files to FTP?
Vidmantas Kabošis @ VilniusPHP, 2013-09-05
Manual deployment
● Easiness of deployment
● No configuration
● Simple & everywhere accessible tools
Manual deployment
Yeah, but:
● Inconsistent state
● Messy rollbacks
● Messy dependency management
● Interrupted flow
● Han...
Automated deployment
● Consistent state
● Rollbacks
● Dependency handling
● Automated!!!11!1one
Automated deployment
● You must still handle exceptions by hand
● One more tool into a project
● “Automated” part is only ...
Automated deployment
● But anyway, it’s sexy and a must for even
smallest projects
● Red/blue pill
Capistrano
● Platform for automation
● Ruby
● De facto standard for deploying Ruby apps
● Many capistrano-like projects fo...
Capify
● gem install capistrano
● capify .
Setup
current -> releases/…
releases/
20130901101023/
20130901090144/
…
shared/
tmp
pids
conf
Flow
deploy
deploy:update
deploy:update_code
>> transaction kicks in
deploy:finalize_update
deploy:create_symlink
deploy:r...
Caveats
● SSH
● Upcoming v3
Happy automation!
● Questions?
end
@vidmantas / vidmantas@kabosis.lt
Upcoming SlideShare
Loading in...5
×

Capistrano @ VilniusPHP

1,439

Published on

My short presentation about automated deployment & capistrano performed in VilniusPHP meetup on 2013-09-05

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

  • Be the first to like this

No Downloads
Views
Total Views
1,439
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Capistrano @ VilniusPHP

  1. 1. Capistrano Still Uploading Files to FTP? Vidmantas Kabošis @ VilniusPHP, 2013-09-05
  2. 2. Manual deployment ● Easiness of deployment ● No configuration ● Simple & everywhere accessible tools
  3. 3. Manual deployment Yeah, but: ● Inconsistent state ● Messy rollbacks ● Messy dependency management ● Interrupted flow ● Handmade!
  4. 4. Automated deployment ● Consistent state ● Rollbacks ● Dependency handling ● Automated!!!11!1one
  5. 5. Automated deployment ● You must still handle exceptions by hand ● One more tool into a project ● “Automated” part is only for usual use cases
  6. 6. Automated deployment ● But anyway, it’s sexy and a must for even smallest projects ● Red/blue pill
  7. 7. Capistrano ● Platform for automation ● Ruby ● De facto standard for deploying Ruby apps ● Many capistrano-like projects for PHP too ● Why bother with copycats, if you can use original tool?
  8. 8. Capify ● gem install capistrano ● capify .
  9. 9. Setup current -> releases/… releases/ 20130901101023/ 20130901090144/ … shared/ tmp pids conf
  10. 10. Flow deploy deploy:update deploy:update_code >> transaction kicks in deploy:finalize_update deploy:create_symlink deploy:restart deploy:cleanup
  11. 11. Caveats ● SSH ● Upcoming v3
  12. 12. Happy automation! ● Questions?
  13. 13. end @vidmantas / vidmantas@kabosis.lt
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×