Posted over 1 year ago. Visible to the public.

Capistrano Sample Recipe

Disclaimer

These are samples and might need more customisation depending on the version of capistrano you are using.
If you notice non-application-specific changes being necessary please let us know!

Getting your sample recipe

At the moment we provide a Capistrano 3 sample recipe. You can find it here:

capistrano_3_recipe.tar.gz

Structure of our sample files

Copy
. ├── Capfile ├── config │   ├── deploy │   │   ├── production.rb │   │   └── staging.rb │   └── deploy.rb ├── lib │   └── capistrano │   └── tasks │   ├── deploy.rake │   └── passenger.rake └── README

Changes to the sample files

If you use our sample files these are the changes you need to make in order for them to work properly:

In config/deploy.rb you need to change the following lines:

Copy
repository (e.g.: :repository, "git@github.com:githubusername/gitrepo.git")

In the environment files production.rb and staging.rb the following entries need to be changed:

Copy
deploy_to branch server, user

Create a file config/secrets.yml which contains the secret_key_base for your application, or ask us to create that via Puppet!

Add the following lines to the deploy-group of your Gemfile:

Copy
group :deploy do gem 'capistrano', '~>3.5' gem 'capistrano-rails', require: false gem 'capistrano-bundler', require: false gem 'capistrano-maintenance', '~> 1.0', require: false end

Owner of this card:

Avatar
Marius Schuller
Last edit:
10 months ago
by Claus-Theodor Riegg
Posted by Marius Schuller to opscomplete
This website uses cookies to improve usability and analyze traffic.
Accept or learn more