Deploy application to localhost using Capistrano

2019-08-30 13:02发布

问题:

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.



标签: capistrano