• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

deploy用ブランチを作るのもいいのですが、tagの方が気軽に作成できてマージしなくてもいいので楽チンではないかと探したらありました:

Deploying trunk or tags with capistrano

written by paul on October 28th, 2008 @ 08:34 PM
http://www.pgrs.net/2008/10/29/deploying-trunk-or-tags-with-capistrano

ML上でJamis Buckさんにアドバイス貰ってできたそうです。

rails>>
set :repository_root, "http://www.example.com/svn/myproject"
set(:tag) { Capistrano::CLI.ui.ask("Tag to deploy (or type 'trunk' to deploy from trunk): ") }
set(:repository) { (tag == "trunk") ? "#{repository_root}/trunk" : "#{repository_root}/tags/#{tag}" }
<<--

posted by satoko satoko on Tue 2 Jun 2009 at 06:16 with 0 comments