Hi,
I am unable to deploy my rails project with capistrano due to this
error:
[code]
executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
*** [deploy:update_code] rolling back
* executing "rm -rf /library/rails/animare/zoom/releases/
20090918133840; true"
servers: ["xserve.animare.org"]
Password:
[xserve.animare.org] executing command
command finished
/opt/local/lib/ruby/gems/1.8/gems/capistrano-2.5.9/lib/capistrano/
recipes/deploy/scm/git.rb:218:in `query_revision': Deploying remote
branches is no longer supported. Specify the remote branch as a local
branch for the git repository you're deploying from (ie:
'from_scratch' rather than 'origin/from_scratch'). (ArgumentError)
from /opt/local/lib/ruby/gems/1.8/gems/capistrano-2.5.9/lib/
capistrano/recipes/deploy/scm/base.rb:35:in `send'
[/code]
Before upgrading to rails 2.3.4 (capistrano 2.5.9) everything was
working fine (rails 2.1.0, capistrano 2.0.0). I installed the latest
version of git (1.6.4.1) and I tried to change the branch in deploy.rb
without success.
Here is my deploy.rb
[code]
default_run_options[:pty] = true
ssh_options[:keys] = %w(/library/git/.ssh/id_rsa.pub)
set :application, "zoom"
set :scm, :git
set :branch, "origin/from_scratch"
set :repository, "[email protected]:git/zoom.git"
role :web, "xserve.animare.org"
role :app, "xserve.animare.org"
role :db, "xserve.animare.org", :primary => true
set :address, "127.0.0.1"
set :user, "rails"
set :group, "wheel"
set :use_sudo, false
set :chmod755, %w(app config db lib public vendor script tmp public/
dispatch.cgi public/dispatch.fcgi public/dispatch.rb)
if variables.include?(:test) #cap deploy -S test
set :environment, "test_production"
set :mongrel_port, "3010"
set :number, "1"
set :deploy_to, "/library/rails/animare/#{application}-test"
set :mongrel_conf, "/library/rails/animare/#{application}-test/
current/config/mongrel_cluster.yml"
else
set :environment, "production"
set :mongrel_port, "8000"
set :number, "2"
set :deploy_to, "/library/rails/animare/#{application}-new"
set :mongrel_conf, "/library/rails/animare/#{application}/current/
config/mongrel_cluster.yml"
end
[/code]
What could be the source of this error ?
--~--~---------~--~----~------------~-------~--~----~
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.co.uk/group/capistrano?hl=en
-~----------~----~----~----~------~----~------~--~---