To deploy your octopress blog with Capistrano, you should do these steps:
First, add capistrano gem to your Gemfile. Then, after running a bundle install, run bundle exec capify .
(or bin/capify . if you use binstubs) to generate the Capistrano files.
After that, you should add a content like this to your config/deploy.rb file.
Now, you should add the group production to the development group
on your Gemfile. Doing this, capistrano will be able to run octopress:generate on
your server.
Finally, before doing the first cap deploy, do a git clone of your blog’s repository on the server (or try to connect through ssh to the repository server on your blog server), you will need to use the -A option on ssh command to forward your keys.
This is needed because ssh asks for the fingerprint confirmation on the first ssh connection. As capistrano won’t do the ‘yes’ on the confirmation you should do it manually.
Doing this, you will be able to deploy your blog through capistrano. Do you have any tips on how to improve this capistrano recipe ? Please say them on the comments :).