2010-12-04 29 views

回答

1

要查看版本已經先前發佈的 - 我使用Capistrano的外殼

$ cap shell 
# Show the release directory - it might be a long list 
cap> ls /mnt/html/deployed/releases/ 
** [out :: hostname.example.com] 20110521130031 

# which revisions are current now 
cap> cat /mnt/html/deployed/current/REVISION 
** [out :: hostname.example.com] 5201 

有沒有辦法回滾到一個特定的版本(不是前一個)。你可以釋放那個較舊的。

如果你想推一個標籤,你必須 變化:倉庫URL(因爲 顛覆真的不支持 標籤 - 你實際上從 不同的路徑推入倉庫 代替) 。如果要從 當前存儲庫中推送 特定修訂號,則只需設置 :revision變量。您可以設置 其中任一在命令行: 來自:http://groups.google.com/group/capistrano/msg/10cc8ac9997d5e2a

cap -s repository=http://blah.blah.blah deploy 
cap -s revision=123 deploy 
相關問題