October 25, 2012

Capistrano Callback Order and Recipe Brief Explanations

I’m not familiar with capistrano at all, I kind of use it in daily base but what I’m capable of is just the one major command: ca deploy, heh that’s all I got.

Capistrano Callback Order

If you like me always get confused by the callback orders, image is really gonna help you out.

Capistrano Task explanation

Capistrano recipes: deploy is brief explanations of each task, same in the source code I think, highly recommend you go through them once.

Another good resource is capistrano recipes source code

task :update do
  transaction do
    update_code
    create_symlink
  end
end

Like this :update task is easy to guess: run update_code and create_symlink in a transaction.

Share on Twitter Share the post
Qihuan Piao

Qihuan Piao

(aka kinopyo) is Chinese based in Tokyo. Software writer. He shares stories inspired him in this blog. His infamous line - "I feel calm when I kill those monsters, or people (in game)" shocks his friends deeply.

He also writes in Japanese and Chinese.