Automated Deployment with Fabric

7,717 views

Published on

Published in: Technology, Business
1 Comment
6 Likes
Statistics
Notes
  • Fabric is 1000x better than Capistrano. I've just gotten started and decided to share some of my thoughts around usage patterns.

    http://quickshiftin.com/blog/2013/10/fabric-application-deployments/
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
7,717
On SlideShare
0
From Embeds
0
Number of Embeds
1,123
Actions
Shares
0
Downloads
85
Comments
1
Likes
6
Embeds 0
No embeds

No notes for slide

Automated Deployment with Fabric

  1. 1. Automated Deploymentwith Fabric<br />@tanihito<br />1<br />
  2. 2. Deployment is bothersome!<br />2<br />
  3. 3. What is Fabric?<br /> “Fabric is a Command-line tool for streamlining the use of SSH for application deployment or systems administration tasks.”<br />3<br />
  4. 4. Fabric’s good points<br />Less codes than shell script<br />Less mistakes than handwork<br />Less time to operate many servers<br />4<br />
  5. 5. Demo<br />5<br />Shutdown Tomcat<br />Backup old war file<br />Remove cache<br />Upload new war file<br />Startup Tomcat<br />
  6. 6. Fabric Basics<br />Install<br />$ easy_install fabric<br />Setting<br />Make fabfile.py<br />Run<br />$ fab <command><br />6<br />
  7. 7. fabfile.py<br />7<br />
  8. 8. Useful APIs<br />8<br />
  9. 9. Configuration<br />Most of Fabric’s behavior is controllable by modifying env variables<br />9<br />
  10. 10. Summary<br />Background<br />Deployment takes long time<br />Method<br />Automated Deployment with Fabric<br />Result<br />One step deployment saves deployment time<br />10<br />
  11. 11. Problems<br />Tailing log files (tail –f) is difficult<br />11<br />
  12. 12. Reference<br />fabric documentation<br />http://docs.fabfile.org/en/1.2.2/index.html<br />fabric recipes<br />http://wiki.fabfile.org/Recipes<br />Python deployment with fabric<br />http://www.slideshare.net/andymccurdy/python-deployment-with-fabric<br />fabric デプロイツールのPythonicな書き方<br />http://www.ianlewis.org/jp/fabric-pythonic<br />12<br />
  13. 13. Questions?<br />13<br />

×