Deployments with rails

319 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
319
On SlideShare
0
From Embeds
0
Number of Embeds
1
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

×