Deployments with Rails            -Gourav Tiwari
Overview●   Crash-course on Capistrano●   Quick tips●   Questions?
Basic Structure●   config directory●   deploy.rb●   Capfile
Variables●   application●   repository●   scm●   user●   deploy_to●   Custom variables?●   exists?
Roles●   app●   db●   web●   Options          –   :primary => true          –   :no_release => true
Cap Tasks●   Namespace●   Tasks●   before●   after●   Multiple tasks before/after●   assets?
Running commands●   run●   rake tasks●   shell scripts●   set cron jobs (whenever)●   create links and so on...
Multiple environments●   Specific vs Generic tasks●   Handling environment variables●   Different git branches
Useful cap tasks available●   cap -T●   cap -vT●   cap -e <taskname>●   cap <env> deploy:install●   cap <env> deploy:migra...
Transactions and Roll-Back
Thank You
References●   https://github.com/capistrano/capistrano/wiki●   https://github.com/capistrano/capistrano
Upcoming SlideShare
Loading in...5
×

Deployments with rails

187

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
187
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Deployments with rails

  1. 1. Deployments with Rails -Gourav Tiwari
  2. 2. Overview● Crash-course on Capistrano● Quick tips● Questions?
  3. 3. Basic Structure● config directory● deploy.rb● Capfile
  4. 4. Variables● application● repository● scm● user● deploy_to● Custom variables?● exists?
  5. 5. Roles● app● db● web● Options – :primary => true – :no_release => true
  6. 6. Cap Tasks● Namespace● Tasks● before● after● Multiple tasks before/after● assets?
  7. 7. Running commands● run● rake tasks● shell scripts● set cron jobs (whenever)● create links and so on...
  8. 8. Multiple environments● Specific vs Generic tasks● Handling environment variables● Different git branches
  9. 9. Useful cap tasks available● cap -T● cap -vT● cap -e <taskname>● cap <env> deploy:install● cap <env> deploy:migrations● cap <env> deploy:cleanup● cap <env> deploy
  10. 10. Transactions and Roll-Back
  11. 11. Thank You
  12. 12. References● https://github.com/capistrano/capistrano/wiki● https://github.com/capistrano/capistrano
  1. A particular slide catching your eye?

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

×