Capistrano/Rake integration is deprecated

E

Encapsulin

Hello everybody,
I'm trying to include capistrano support into RoR application, as
descripbed in the 2nd version of the Agile Rails book. But after
invoking the command :
# rake remote:cold_deploy
I've received the message "Capistrano/Rake integration is
deprecated": ##################################
rake remote:cold_deploy (in /var/www/ruby/demo) Capistrano/Rake
integration is deprecated. Please invoke the 'cap' command directly:
`cap cold_deploy' * executing task cold_deploy * executing task update
** transaction: start * executing task update_code * querying latest
revision... svn: REPORT request failed on '/svn/demo/!svn/bc/0/trunk'
svn: '/svn/demo/!svn/bc/0/trunk' path not found
[update_code] transaction: rollback * [update_code] rolling back *
executing "rm -rf /var/www/ruby/demo/releases/20070315145548" servers:
["localhost"] Password: [localhost] executing command command finished
rake aborted! Could not determine latest revision
(See full trace by running task with-trace)
##################################
Why capistrano is deprecated? What does it mean? How to fix?
Thanks in advance.
 
R

Rob Biedenharn

Hello everybody,
I'm trying to include capistrano support into RoR application, as
descripbed in the 2nd version of the Agile Rails book. But after
invoking the command :
# rake remote:cold_deploy
I've received the message "Capistrano/Rake integration is
deprecated": ##################################
rake remote:cold_deploy (in /var/www/ruby/demo) Capistrano/Rake
integration is deprecated. Please invoke the 'cap' command directly:
`cap cold_deploy' * executing task cold_deploy * executing task update
** transaction: start * executing task update_code * querying latest
revision... svn: REPORT request failed on '/svn/demo/!svn/bc/0/trunk'
svn: '/svn/demo/!svn/bc/0/trunk' path not found
[update_code] transaction: rollback * [update_code] rolling back *
executing "rm -rf /var/www/ruby/demo/releases/20070315145548" servers:
["localhost"] Password: [localhost] executing command command finished
rake aborted! Could not determine latest revision
(See full trace by running task with-trace)
##################################
Why capistrano is deprecated? What does it mean? How to fix?
Thanks in advance.

It just means that the rake tasks for calling capistrano recipes is
going away. You can run the same thing directly with capistrano (as
the error message says).

rake remote:cold_deploy

is just one step removed from:

cap cold_deploy

Less typing, too!

-Rob

Rob Biedenharn http://agileconsultingllc.com
(e-mail address removed)
 
E

Encapsulin

Hello everybody,
I'm trying to include capistrano support into RoR application, as
descripbed in the 2nd version of the Agile Rails book. But after
invoking the command :
# rake remote:cold_deploy
I've received the message "Capistrano/Rake integration is
deprecated": ##################################
rake remote:cold_deploy (in /var/www/ruby/demo) Capistrano/Rake
integration is deprecated. Please invoke the 'cap' command directly:
`cap cold_deploy' * executing task cold_deploy * executing task update
** transaction: start * executing task update_code * querying latest
revision... svn: REPORT request failed on '/svn/demo/!svn/bc/0/trunk'
svn: '/svn/demo/!svn/bc/0/trunk' path not found
[update_code] transaction: rollback * [update_code] rolling back *
executing "rm -rf /var/www/ruby/demo/releases/20070315145548" servers:
["localhost"] Password: [localhost] executing command command finished
rake aborted! Could not determine latest revision
(See full trace by running task with-trace)
##################################
Why capistrano is deprecated? What does it mean? How to fix?
Thanks in advance.

It just means that the rake tasks for calling capistrano recipes is
going away. You can run the same thing directly with capistrano (as
the error message says).

rake remote:cold_deploy

is just one step removed from:

cap cold_deploy

Less typing, too!

-Rob

Rob Biedenharn http://agileconsultingllc.com
(e-mail address removed)


Thank you for quik response!

after invoking the command "cap cold_deploy" I received the follofing:
"Could not determine latest revision (RuntimeError)" ...why?what does
it mean?

# cap cold_deploy
* executing task cold_deploy
* executing task update
** transaction: start
* executing task update_code
* querying latest revision...
svn: REPORT request failed on '/svn/demo/!svn/bc/0/trunk'
svn: '/svn/demo/!svn/bc/0/trunk' path not found
*** [update_code] transaction: rollback
* [update_code] rolling back
* executing "rm -rf /var/www/ruby_deploy/demo/releases/
20070316185001"
servers: ["localhost"]
Password:
[localhost] executing command
command finished
/usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/capistrano/scm/
subversion.rb:24:in `latest_revision': Could not determine latest
revision (RuntimeError)
from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/configuration.rb:62:in `initialize'
from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/configuration.rb:89:in `call'
from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/configuration.rb:89:in `[]'
from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/configuration.rb:236:in `method_missing'
from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/scm/subversion.rb:63:in `checkout'
from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/recipes/standard.rb:80:in `load'
from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/actor.rb:159:in `instance_eval'
from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/actor.rb:159:in `update_code'
... 13 levels...
from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/cli.rb:12:in `execute!'
from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/bin/cap:11
from /usr/bin/cap:16:in `load'
from /usr/bin/cap:16
 
R

Rob Biedenharn

Hello everybody,
I'm trying to include capistrano support into RoR application, as
descripbed in the 2nd version of the Agile Rails book. But after
invoking the command :
# rake remote:cold_deploy
I've received the message "Capistrano/Rake integration is
deprecated": ##################################
rake remote:cold_deploy (in /var/www/ruby/demo) Capistrano/Rake
integration is deprecated. Please invoke the 'cap' command directly:
`cap cold_deploy' * executing task cold_deploy * executing task
update
** transaction: start * executing task update_code * querying latest
revision... svn: REPORT request failed on '/svn/demo/!svn/bc/0/
trunk'
svn: '/svn/demo/!svn/bc/0/trunk' path not found
[update_code] transaction: rollback * [update_code] rolling back *
executing "rm -rf /var/www/ruby/demo/releases/20070315145548"
servers:
["localhost"] Password: [localhost] executing command command
finished
rake aborted! Could not determine latest revision
(See full trace by running task with-trace)
##################################
Why capistrano is deprecated? What does it mean? How to fix?
Thanks in advance.

It just means that the rake tasks for calling capistrano recipes is
going away. You can run the same thing directly with capistrano (as
the error message says).

rake remote:cold_deploy

is just one step removed from:

cap cold_deploy

Less typing, too!

-Rob

Rob Biedenharn http://agileconsultingllc.com
(e-mail address removed)

Thank you for quik response!

after invoking the command "cap cold_deploy" I received the follofing:
"Could not determine latest revision (RuntimeError)" ...why?what does
it mean?

# cap cold_deploy
* executing task cold_deploy
* executing task update
** transaction: start
* executing task update_code
* querying latest revision...
svn: REPORT request failed on '/svn/demo/!svn/bc/0/trunk'
svn: '/svn/demo/!svn/bc/0/trunk' path not found
*** [update_code] transaction: rollback
* [update_code] rolling back
* executing "rm -rf /var/www/ruby_deploy/demo/releases/
20070316185001"
servers: ["localhost"]
Password:
[localhost] executing command
command finished
/usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/capistrano/scm/
subversion.rb:24:in `latest_revision': Could not determine latest
revision (RuntimeError)

Are you sure you have the subversion repository path correct? Can
you run the svn commands manually on your application server? It
seems like the svn command is found, but it's looking for /svn/demo/!
svn/bc/0/trunk

-Rob

Rob Biedenharn http://agileconsultingllc.com
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top