Hello,
I managed to get Ruby, Mongrel, and Capistrano gem installed on HP-UX
11i v3 11.31 (on Itanium). Mongrel will run a Rails app... But, even
with a minimal deploy.rb, I'm getting a strange error when running a
basic Capistrano task (with only a simple 'run' helper).
My deploy.rb is simple:
set :use_sudo, false
set :application, "myapp"
role :app, "localhost"
desc "test me"
task :tester, :roles => :app do
puts "tester starting"
run "echo hello"
end
The error I'm seeing is:
$ cap tester
* executing `tester'
tester starting
* executing "echo hello"
servers: ["localhost"]
connection failed for: localhost (Errno::EINVAL: Invalid argument -
getpeername(2))
Has anyone seen this error before? I've Googled it and haven't seen
anything helpful.
I've tried setting the following to no avail:
default_run_options[:pty] = true
default_run_options[:shell] = false
I've also tried monkey patching "run" (after seeing some discussion of
problems with BASH profiles back in 2006):
def run(cmd, options={}, &block)
cmd = <<-CMD
BASH_ENV=.bashrc /usr/local/bin/bash -c -- "#{cmd}"
CMD
run_without_env cmd, options, &block
end
That didn't work either (same error in all cases).
Does anyone have any suggestions on where I might look first? I'm
running Ruby 1.8.6 and Cap v2.2.0.
Thanks,
Kyle
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---