title: capistrano deploy from one local directory to another
body: <p>I want to deploy application on my local machine. For example I have my Rails APP in:
  <code>/home/thesis/dev/myapp</code> but I want to <code>cap deploy:setup</code> to <code>/home/thesis/deploy/</code>. I have tried that but capistrano tries to connect to <code>localhost</code>, but it is not needed at all. How can I solve it?</p>
  
  <p>Here goes my deploy.rb</p>
  
  <pre><code>role :app, "localhost"
  role :web, "localhost"
  role :db,  "localhost", :primary =&gt; true
  
  set(:deploy_to) { "/home/thesis/dev/myapp" }
  set :bundle_without,  [:development, :test]
  set :use_sudo, false
  
  set :repository, "."
  set :scm, :none
  set :deploy_via, :copy
  
  set :copy_dir, "/home/thesis/deploy/tmp"
  set :copy_remote_dir, "/home/thesis/deploy/tmp"
  </code></pre>
  
  <p>It drops with:</p>
  
  <pre><code>connection failed for: localhost (Errno::ECONNREFUSED: Connection refused - connect(2))
  </code></pre>