I spent about three weeks trying to track this error, so forgive me if this is a stupid question, but I have a complete loss. I am struggling to understand why I cannot deploy this application. I get a type error when trying to deploy: installation and deployment: check with capistrano and I cannot figure out where this might come from. I thought it might be a mistake I made while setting up my ssh keys. However, when I ssh to the server through the command line, setting the ssh key explicitly works. I am using ruby-1.9.2-p290, Rails 3.1.3, rvm 1.10.2, capistrano 2.5.2, Mac OS 10.6.8, and I am deploying on another server running the phusion passenger.
So far, we have been trying to switch to ruby ββ3.1 and return to 1.9.2, reinstall rvm, reinstall the phusion passenger, delete and recreate the gemset, etc. etc.
Thanks in advance for any help you can offer! My whole project has been idle for too long! Let me know if any further information helps. Thanks!
Here's what happens when the deployment starts: setup with capistrano from the project folder:
$ cap deploy: setup * run `deploy: setup '* run" mkdir -p / usr / local / www / sites / myapp.nullpointer.ca / public / "> /usr/local/www/sites/myapp.nullpointer. ca / public / releases> /usr/local/www/sites/myapp.nullpointer.ca/public/shared> /usr/local/www/sites/myapp.nullpointer.ca/public/shared/system> / usr / local /www/sites/myapp.nullpointer.ca/public/shared/log> /usr/local/www/sites/myapp.nullpointer.ca/public/shared/pids && chmod g + w> / usr / local / www / sites / myapp.nullpointer.ca / public /> /usr/local/www/sites/myapp.nullpointer.ca/public/releases> /usr/local/www/sites/myapp.nullpointer.ca/public/shared> / usr / local / www / sites / myapp. nullpointer.ca/public/shared/system> /usr/local/www/sites/myapp.nullpointer.ca/public/shared/log> /usr/local/www/sites/myapp.nullpointer.ca/public/shared/ Server IDP: ["myapp.nullpointer.ca"] connection failed for: myapp.nullpointer.ca (TypeError: no implicit conversion from nil> to integer)
And here is my deployment file:
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) require "rvm/capistrano" set :application, "Myapp" set :scm, "git" set :repository, "ssh:// git@friendsserver.nullpointer.ca /usr/local/git_root/myapp.git" set :rvm_ruby_string, " 1.9.2-p290@myapp " ssh_options[:forward_agent] = true ssh_options[:verbose] = :debug set :branch, "master" set :deploy_via, :remote_cache set :deploy_to, "/usr/local/www/sites/myapp.nullpointer.ca/public/" set :use_sudo, false set :domain, 'myapp.nullpointer.ca' role :app, domain role :web, domain role :db, domain, :primary => true