Capistrano plugins, recipes and templates
Get Version
0.1.7→ ‘capitate’
What
Capistrano plugins, recipes and templates.
Installing
sudo gem install capitate
Create a Capfile (in your project):
capitate
Create and set a profile in you Capfile:
# load "config/deployment/centos-sick.rb"
See profiles section below for more info
The basics
Capitate has recipes for:
- Installing applications, via package manager or manually building with make.
- Common deployment setup and update_code tasks, such as symlinking in database.yml and more advanced recipes such as sphinx configuration.
- ERB templates for application configuration files, init scripts, monit configuration, etc.
- And more…
Profiles
Profiles are capfiles which store lists of recipes to run for cap install and deploy and settings for those recipes.
For an example profile, see centos-sick.rb
TODO: More on profiles…
Install recipes
To install a group of applications based on a profile (see Profiles section below):
cap install
You may need to comment out “Defaults requiretty” in /etc/sudoders on the image before capistrano recipes will work.
Deploying (application)
If this is the first time you’ve deployed you’ll need to run:
cap deploy:setup
Otherwise, your standard deploy options:
cap deploy
cap deploy:migrations (deploys and does migration)
cap deploy:migrate (only does migration on existing deployment)
Forum
http://groups.google.com/group/capitate
How to submit patches
Read the 8 steps for fixing other people’s code and for section 8b: Submit patch to Google Groups, use the Google Group above.
The trunk repository is http://svn.ducktyper.com/var/svn/capitate/trunk
for anonymous access.
License
This code is free to use under the terms of the MIT license.
Contact
Comments are welcome. Send an email to Gabriel Handford via the forum
Gabriel Handford, 21st February 2008
Theme extended from Paul Battley