Capistrano update causes C: to be placed in the current directory (cygwin)

Posted by user321775 on Stack Overflow See other posts from Stack Overflow or by user321775
Published on 2010-04-20T22:27:58Z Indexed on 2010/04/20 22:33 UTC
Read the original article Hit count: 204

Filed under:
|
|
|
|

When I run cap deploy:update in a directory on my local machine (via cygwin), "C:" magically appears in the directory. Sure enough, I can cd to it and it's my windows C: drive. Now I'm afraid to delete it, but I definitely don't want it in this directory (a rails project under /home/username/blah/blah).

Here's my config/deploy.rb file.


custom options

set :application, "xyz.com"
set :repository, "ssh://[email protected]:yyyy/home/git/xxx"
set :user, "myname"
set :runner, user
set :use_sudo, false
server "xxx.xxx.xxx.xxx:yyyy", :app, :web, :db, :primary => true

deploy to

set :deploy_to, "/home/myname/public_html/xyz"

repository

set :scm, :git set :deploy_via, :copy

ssh options

default_run_options[:pty] = true
ssh_options[:paranoid] = false
ssh_options[:port] = yyyy

start passenger

namespace :deploy do
task :start do ; end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
end
end


Anyone see the problem? And does anyone know a safe way of getting rid of the C: drives that have already shown up (this has happened in a few directories)?

© Stack Overflow or respective owner

Related posts about capistrano

Related posts about cygwin