Capistrano

810 views

Published on

to write deployment script for multiple environments, symlinks, cap tasks.

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

  • Be the first to like this

No Downloads
Views
Total views
810
On SlideShare
0
From Embeds
0
Number of Embeds
11
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Rake task Remote Automation
  • Capistrano

    1. 1. Deployment Capistrano Sapna Solutions
    2. 2. Sapna Solutions
    3. 3. What is required? <ul><li>Remote login </li></ul><ul><li>Some remote tasks to be performed (run) </li></ul><ul><li>Facilitate deployment on multiple servers with no pain </li></ul><ul><li>Setup the deployment (initially) </li></ul><ul><li>Deploy whenever required (no-cycle eaters) </li></ul><ul><li>Migrate, export or import after deployments </li></ul><ul><li>Maintain the static assets like images, Configuration files, tmp files out of deployment by using symlinks </li></ul>Sapna Solutions
    4. 4. How it manages? Sapna Solutions
    5. 5. All Commands Sapna Solutions
    6. 6. Start <ul><li>Sudo gem install capistrano </li></ul><ul><li>Cd <app_name> </li></ul><ul><li>Capify . </li></ul>Sapna Solutions
    7. 7. Basic commands <ul><li>Cap deploy:setup </li></ul><ul><li>Cap deploy </li></ul><ul><li>Cap deploy:migrate </li></ul>Sapna Solutions
    8. 8. What can be done? <ul><li>Have your shell and eat it too (cap shell) </li></ul><ul><li>Invoke any command ( cap invoke COMMAND=“ls -l” </li></ul><ul><li>Custom callbacks </li></ul><ul><li>Include more recipes (Capfile) </li></ul>Sapna Solutions
    9. 9. Sample files and more help <ul><li>Checkout my sample deploy.rb gist for multiple environments </li></ul><ul><ul><li>Public clone url : git://gist.github.com/347693.git </li></ul></ul><ul><ul><li>URL : http://gist.github.com/347693 </li></ul></ul><ul><li>More information </li></ul><ul><ul><li>http://www.capify.org/ </li></ul></ul><ul><ul><li>http://railscasts.com/episodes/133-capistrano-tasks </li></ul></ul><ul><li>Rest test out simple commands and then move on to more complex Cap tasks </li></ul>Sapna Solutions
    10. 10. Sapna Solutions

    ×