问题
can somebody paste me "deploy.rb" file with configuration for LOCAL MACHINE ?
Whenever i try to use cap local deploy i get onnection failed for: localhost (Errno::ECONNREFUSED: Connection refused - connect(2))
Configuration:
set :branch, "master"
set :deploy_to, "path/#{application}"
set :domain, "localhost"
role :app, domain
role :web, domain
role :db, domain, :primary => true
Any help appreciated.
回答1:
Anwser is very simple... SSH Agent was not enabled.
来源:https://stackoverflow.com/questions/10948793/deploy-application-to-localhost-using-capistrano