我需要對下面的deploy.rb
文件進行哪些更改才能使其從本地git倉庫部署我的應用程序?如果我無法從本地回購部署,我可以讓capistrano使用工作複製嗎?如何配置Capistrano從本地Git存儲庫進行部署?
set :application, "my_app"
set :repository, "."
set :local_repository, "file:///path/to/application/.git"
set :deploy_to, "/data/www/apps/#{application}"
set :deploy_via, :copy
set :copy_cache, true
set :user, "dane"
set :use_sudo, false
set :scm, :git # Should I change this to :none
set :branch, "master"
+1。但是,在capistrano v 2.12.0中,我還必須執行'set:local_repository','' – Zabba 2012-04-14 07:37:55
這將包括scm中被忽略的文件嗎? – lulalala 2012-05-31 03:16:41
它不適用於capistrano 3.想法? – 2013-11-04 15:24:24