hi,

im trying to use a gitrepo on a external private host, but somehow failing
and i dont know why:

set :stages, %w(staging production)
set :default_stage, "staging"
set :user, 'tom'
ssh_options[:forward_agent] = true
ssh_options[:port] = 8888

default_run_options[:pty] = true

set :application, "myapp.com"
set :use_sudo, false

# Use Git source control
set :scm, :git
set :scm_username, "tom"
set :branch, "master"
set :repository,  "#{user}@privateserver.dyndns.org:
/home/#{user}/projects/gitrepos/cool.git"
set :scm, :git
set :deploy_via, :remote_cache

error:

/testapp$ cap staging deploy:update
  * executing `staging'
    triggering start callbacks for `deploy:update'
  * executing `multistage:ensure'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    updating the cached checkout on all servers
    executing locally: "git ls-remote
[email protected]:/home/tom/projects/gitrepos/cool.git
master"
[email protected]'s password:
  * executing "if [ -d /home/tom/ror/myapp.com/staging/shared/cached-copy ];
then cd /home/tom/ror/myapp.com/staging/shared/cached-copy && git fetch -q
origin && git reset -q --hard 58d3da592eba00820938b791074ab45665f2e74e &&
git clean -q -d -x -f; else git clone -q
[email protected]:/home/tom/projects/gitrepos/cool.git
/home/tom/ror/myapp.com/staging/shared/cached-copy && cd /home/tom/ror/
myapp.com/staging/shared/cached-copy && git checkout -q -b deploy
58d3da592eba00820938b791074ab45665f2e74e; fi"
    servers: ["myapp.com"]
Password:
    [myapp.com] executing command
         ** [myapp.com :: out] ssh: connect to host 192.168.178.21 port 22:
Connection timed out
 ** [myapp.com :: out] fatal: The remote end hung up unexpectedly
    command finished
*** [deploy:update_code] rolling back
  * executing "rm -rf /home/tom/ror/
myapp.com/staging/releases/20110223121324; true"
    servers: ["myapp.com"]
    [myapp.com] executing command
    command finished
failed: "sh -c 'if [ -d
/home/tom/ror/myapp.com/staging/shared/cached-copy]; then cd
/home/tom/ror/
myapp.com/staging/shared/cached-copy && git fetch -q origin && git reset -q
--hard 58d3da592eba00820938b791074ab45665f2e74e && git clean -q -d -x -f;
else git clone -q
[email protected]:/home/tom/projects/gitrepos/cool.git
/home/tom/ror/myapp.com/staging/shared/cached-copy && cd /home/tom/ror/
myapp.com/staging/shared/cached-copy && git checkout -q -b deploy
58d3da592eba00820938b791074ab45665f2e74e; fi'" on myapp.com



>> why is it timing out and why is it trying to git 192.**.21? 21 is my
local machine which shouldnt have anything to do with it. also, the target
web server is accessible via ssport 8888 only. but it deoesnt seem to take
that, nor does the option:
role :web, "#{application}:8888" would make a difference

im confused and need some pointers.

tia
tom

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to