Skip to content
This repository

Capistrano recipes for af83

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 doc
Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 capistrano-af83.gemspec
README.md

Capistrano recipes for af83

We are af83. We develop web applications and most of them are deployed with capistrano. The capistrano-af83 gem let us share recipes and good practices between our projects. It's an Open-Source project, so feel free to use it or just look at it for inspiration!

How to use it?

Add it in the Gemfile and run bundle update:

group :development do
  gem 'capistrano-af83'  
end

Then run capify ., use of one the examples of config/deploy.rb files and follow the comments for configuration.

And finally test it on the dev environment:

cap dev deploy:setup
cap dev deploy:check
cap dev deploy

Capistrano extensions

We use some capistrano extensions (capistrano-af83 depends on them):

  • capistrano_colors: colorize your capistrano output for better overview
  • capistrano-notification: notify the end of the deployment on IRC
  • sushi: add a recipe that starts a SSH connection to remote server
  • bundler: automatically run bundle install on the remote server with deployment-friendly options

Environments

+-----------+-------------+------------+----------------------------+
| Cap stage | Rails env   | Git branch | Host                       |
+-----------+-------------+------------+----------------------------+
| N/A       | development | master     | localhost                  |
| N/A       | test        | master     | localhost/jenkins          |
| dev       | dev         | master     | dev.{project}.af83.com     |
| staging   | staging     | staging    | staging.{project}.af83.com |
| prod      | production  | production | {project}.com              |
+-----------+-------------+------------+----------------------------+

Credits

Copyright (c) 2011 af83

Released under the MIT license

Something went wrong with that request. Please try again.