# Capistrano/Rake integration is deprecated

**URL:** <https://www.ruby-forum.com/t/capistrano-rake-integration-is-deprecated/89040>\
**Category:** Ruby\
**Created:** [March 16, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/capistrano-rake-integration-is-deprecated/89040 "2007-03-16T18:16:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Encapsulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/839c29/32.png) [@Encapsulin](https://www.ruby-forum.com/u/Encapsulin)\
**Post date:** [March 16, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/capistrano-rake-integration-is-deprecated/89040/1 "2007-03-16T18:16:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Encapsulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/839c29/32.png) [@Encapsulin](https://www.ruby-forum.com/u/Encapsulin)\
**Post date:** [March 16, 2007, 6:40pm UTC](https://www.ruby-forum.com/t/capistrano-rake-integration-is-deprecated/89040/2 "2007-03-16T18:40:04Z")

</div>

On Mar 16, 2007, at 1:15 PM, Encapsulin wrote:

> \*\* 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 B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Encapsulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/839c29/32.png) [@Encapsulin](https://www.ruby-forum.com/u/Encapsulin)\
**Post date:** [March 16, 2007, 7:56pm UTC](https://www.ruby-forum.com/t/capistrano-rake-integration-is-deprecated/89040/3 "2007-03-16T19:56:12Z")

</div>

On Mar 16, 7:39 pm, Rob B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > deprecated": ##################################  
> > (See full trace by running task with-trace)  
> > is just one step removed from:
> 
> cap cold\_deploy
> 
> Less typing, too!
> 
> -Rob
> 
> Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
> removed\_email\_address@domain.invalid

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

---

<div class="post-metadata">

**Author:** ![Encapsulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/839c29/32.png) [@Encapsulin](https://www.ruby-forum.com/u/Encapsulin)\
**Post date:** [March 16, 2007, 8:28pm UTC](https://www.ruby-forum.com/t/capistrano-rake-integration-is-deprecated/89040/4 "2007-03-16T20:28:19Z")

</div>

On Mar 16, 2007, at 2:55 PM, Encapsulin wrote:

> > > rake remote:cold\_deploy (in /var/www/ruby/demo) Capistrano/Rake  
> > > [“localhost”] Password: [localhost] executing command command
> > 
> > Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)
> 
> - executing task update  
> 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 B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid
