Automating Deployments

2,299 views

Published on

Introduction to automating application deployments with Rails, Git, Chef, and Capistrano

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,299
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Automating Deployments

  1. 1. Automating Deployments North Florida Ruby Brigade Evan Machnic 2 November 2010
  2. 2. Automating Deployments
  3. 3. Automating Deployments  Evan Machnic  BS in IT from FSU, 2009 (Web Development)  Hired after graduation  Layed off January 2009  Freelancing with Ruby on Rails  http://broadmac.net  @emachnic on Twitter and Forrst
  4. 4. Automating Deployments
  5. 5. Automating Deployments  Tools  Ruby  Git  Chef/Puppet  Capistrano/Vlad the Deployer/Screwcap
  6. 6. Automating Deployments  Why  Traditional methods suck  No time  I'm not a masochist
  7. 7. HOW? Automating Deployments
  8. 8. Automating Deployments Rails/Git/Chef/Capistrano
  9. 9. Automating Deployments Rails
  10. 10. Automating Deployments $ rails new myapp
  11. 11. Automating Deployments Git
  12. 12. Automating Deployments $ cd myapp $ git init $ git add . $ git commit -am "Initial commit" $ git remote add origin git://server.com/myapp.git $ git push origin master
  13. 13. Automating Deployments Chef
  14. 14. Automating Deployments -c, --config CONFIG -j, --json-attributes JSON_ATTRIBS -r, --recipe-url RECIPE_URL
  15. 15. Automating Deployments $ chef-solo -c ~/solo.rb -j http://www.example.com/node.json -r http://www.example.com/chef-solo.tar.gz
  16. 16. Automating Deployments Chef Cookbooks http://cookbooks.opscode.com/
  17. 17. Automating Deployments Capistrano
  18. 18. Automating Deployments $ cd myapp $ capify . $ cap deploy
  19. 19. Automating Deployments Sample deploy.rb file
  20. 20. Automating Deployments  Wrap it up  Infinite types of configurations depending on taste  Use what you like  Share your code
  21. 21. Automating Deployments  Resources  http://rubyonrails.org  http://git-scm.com  http://opscode.com  http://capify.org  http://rubyhitsquad.com/Vlad_the_Deployer.html  http://www.puppetlabs.com
  22. 22. Automating Deployments

×