使用Capistrano,我如何看到一個發佈列表,然後回滾到其中的一個?使用Capistrano,如何查看發佈列表,然後回滾到其中一個列表?
這是一個rails應用程序,運行於nginx的phusion上。
使用Capistrano,我如何看到一個發佈列表,然後回滾到其中的一個?使用Capistrano,如何查看發佈列表,然後回滾到其中一個列表?
這是一個rails應用程序,運行於nginx的phusion上。
要查看版本已經先前發佈的 - 我使用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
cap deploy:rollback -s previous_release=/path/to/release/on/server
從https://stackoverflow.com/a/11139185/620780或者看看Capistrano的源頭在github