paul gross :// · • capistrano is a tool for automating tasks on one or more remote servers over...

14
Capistrano Paul Gross http://www.pgrs.net 11/3/2008

Upload: others

Post on 16-Jun-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Paul Gross :// · • Capistrano is a tool for automating tasks on one or more remote servers over ssh • Capistrano comes with a bunch of recipes to make deploying rails apps easier

Capistrano

Paul Gross

http://www.pgrs.net

11/3/2008

Page 2: Paul Gross :// · • Capistrano is a tool for automating tasks on one or more remote servers over ssh • Capistrano comes with a bunch of recipes to make deploying rails apps easier

• Capistrano is a tool for automating tasks on one or more remote servers over ssh

• Capistrano comes with a bunch of recipes to make deploying rails apps easier

• Capistrano lets you write deploy scripts in ruby

What is Capistrano?

Page 3: Paul Gross :// · • Capistrano is a tool for automating tasks on one or more remote servers over ssh • Capistrano comes with a bunch of recipes to make deploying rails apps easier

Basic Recipe for Rails

Page 4: Paul Gross :// · • Capistrano is a tool for automating tasks on one or more remote servers over ssh • Capistrano comes with a bunch of recipes to make deploying rails apps easier

The Filesystem

Page 5: Paul Gross :// · • Capistrano is a tool for automating tasks on one or more remote servers over ssh • Capistrano comes with a bunch of recipes to make deploying rails apps easier

Roles

Page 6: Paul Gross :// · • Capistrano is a tool for automating tasks on one or more remote servers over ssh • Capistrano comes with a bunch of recipes to make deploying rails apps easier

ERBing and Installing Config Files

Page 7: Paul Gross :// · • Capistrano is a tool for automating tasks on one or more remote servers over ssh • Capistrano comes with a bunch of recipes to make deploying rails apps easier

• Capistrano multistage extension basically does this:

• Now, you can run:

Multiple Environments

Page 8: Paul Gross :// · • Capistrano is a tool for automating tasks on one or more remote servers over ssh • Capistrano comes with a bunch of recipes to make deploying rails apps easier

Deploying Trunk or Tags

Page 9: Paul Gross :// · • Capistrano is a tool for automating tasks on one or more remote servers over ssh • Capistrano comes with a bunch of recipes to make deploying rails apps easier

Deploy Verification

Page 10: Paul Gross :// · • Capistrano is a tool for automating tasks on one or more remote servers over ssh • Capistrano comes with a bunch of recipes to make deploying rails apps easier

Capistrano Shell

Page 11: Paul Gross :// · • Capistrano is a tool for automating tasks on one or more remote servers over ssh • Capistrano comes with a bunch of recipes to make deploying rails apps easier

Shell One Liners

Page 12: Paul Gross :// · • Capistrano is a tool for automating tasks on one or more remote servers over ssh • Capistrano comes with a bunch of recipes to make deploying rails apps easier

Using the Shell in Tasks

Page 13: Paul Gross :// · • Capistrano is a tool for automating tasks on one or more remote servers over ssh • Capistrano comes with a bunch of recipes to make deploying rails apps easier

• With our existing example of environments:

• You can run:

Using the Shell with Existing Tasks

Page 14: Paul Gross :// · • Capistrano is a tool for automating tasks on one or more remote servers over ssh • Capistrano comes with a bunch of recipes to make deploying rails apps easier

• http://www.capify.org• http://github.com/jamis/capistrano/tree/master• http://groups.google.com/group/capistrano

More Information