Topic: deploy error

Hi guys,

I've no idea how to solve this problem.

Ive a deploy.rb with the follow lines.

set :application, "rubyproject"

# For a Git repository
set :domain, "XXX.XX.XX.XX"
set :repository,  "git@XXX.XX.XX.XX:#{application}.git"
set :scm, :git
set :user, "seaconserver"
set :scm_passphrase, "XXXXXX"
set :branch, "origin/master"

set :deploy_to, "ruby-1.9.2-p0/#{application}"
set :deploy_via, :checkout 

default_run_options[:pty] = true

role :app, domain
role :web, domain
role :db, domain, :primary => true

I got no errors if i deploy, but the files he deploy are not all the files of the project. Only releases and shared. So if i went to http:XXX.XX.XX.XX:3000 it doesnt work.

than i tried it with multi staging.

deploy.rb

set :stages, %w(staging)
#require 'bundler/capistrano'
require 'capistrano/ext/multistage'
set :application, "rubyproject"
set :repository,  "git@XXX.XX.XX.XX:#{application}.git"
set :user, "seaconserver"
set :deploy_to, "ruby-1.9.2-p0/#{application}_stagging"
set :scm, :git

after "deploy:update_code", "deploy:link_database"
after "deploy:update_code", "deploy:chown_for_apache"

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

   desc "Link the datatbase.yml file"
   task :link_database, :roles => :app do
      run "ln -s #{shared_path}/database.yml #{release_path}/config/database.yml"
   end

   desc "chown the current release to www-data"
   task :chown_for_apache, :roles => :app do
      run "#{try_sudo} chown -R www-data:www-data #{release_path}"
      run "#{try_sudo} chown -R www-data:www-data #{shared_path}"
   end

   task :bootstrap do
      run("cd #{current_path} && /usr/bin/env rake seacon:bootstrap RAILS_ENV=#{stage}")
   end
end

deploy/staging.rb

set :domain, "XXX.XX.XX.XX"
role :web, domain
role :app, domain
role :db, domain, :primary => true
role :db, domain
set :branch, "staging"
set :rails_env, "staging"

if i deploy now i got the following errors.
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.19/lib/capistrano/recipes/deploy/scm/git.rb:231:in `query_revision': Unable to resolve revision for 'staging' on repository 'git@XXX.XX.XX.XX:rubyproject.git'. (RuntimeError)

how to fix it ? Please help me