Hello all,
For whatever reason, I cannot get diff_from_last_deploy to work, in
either 1.1.0 or 1.2.0. I'm using the svn_cache trick and
mongrel_cluster, and this is what I get when I run cap
diff_from_last_deploy:
[EMAIL PROTECTED]:~/Projects/RailsApp$ cap diff_from_last_deploy
loading configuration
/usr/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/recipes/standard.rb
loading configuration ./config/deploy.rb
loading configuration ./lib/cache_svn.rb
loading configuration
/usr/lib/ruby/gems/1.8/gems/mongrel_cluster-0.2.0/lib/mongrel_cluster/recipes.rb
* executing task diff_from_last_deploy
* executing "ls -x1 /var/www/railsapp/releases"
servers: ["server.railsapp.com"]
[server.railsapp.com] executing command
command finished
* executing "grep \" 20061028210054$\"
/var/www/railsapp/revisions.log"
servers: ["server.railsapp.com"]
[server.railsapp.com] executing command
command finished
/usr/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/command.rb:45:in
`process!': command "grep \" 20061028210054$\"
/var/www/railsapp/revisions.log" failed on server.railsapp.com
(RuntimeError)
from
/usr/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/actor.rb:210:in
`run'
from
/usr/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/actor.rb:512:in
`execute_on_servers'
from
/usr/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/actor.rb:207:in
`run'
from
/usr/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/scm/subversion.rb:34:in
`current_revision'
from
/usr/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/scm/subversion.rb:50:in
`diff'
from
/usr/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/recipes/standard.rb:198:in
`load'
from
/usr/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/actor.rb:159:in
`instance_eval'
from
/usr/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/actor.rb:159:in
`diff_from_last_deploy'
from
/usr/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/cli.rb:256:in
`send'
from
/usr/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/cli.rb:256:in
`execute_recipes!'
from
/usr/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/cli.rb:256:in
`each'
from
/usr/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/cli.rb:256:in
`execute_recipes!'
from
/usr/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/cli.rb:233:in
`execute!'
from
/usr/lib/ruby/gems/1.8/gems/capistrano-1.2.0/lib/capistrano/cli.rb:12:in
`execute!'
from /usr/lib/ruby/gems/1.8/gems/capistrano-1.2.0/bin/cap:11
from /usr/bin/cap:18:in `load'
from /usr/bin/cap:18
That ain't right. I can run the above command on the server, and it
returns nothing--"20061028210054" does not appear in revisions.log.
Here's revisions.log:
[EMAIL PROTECTED]:~/Projects/RailsApp$ ssh server.railsapp.com "cat
/var/www/railsapp/revisions.log"
2006-10-23 16:09:16 coda Initial setup checkout 20061023230911
2006-10-23 16:09:28 coda 2501
2006-10-23 16:19:16 coda 2501
2006-10-23 16:21:24 coda 2503
2006-10-23 16:22:30 coda 2504
2006-10-23 16:29:46 coda 2505
2006-10-23 22:04:03 coda Initial setup checkout 20061024050400
2006-10-23 22:06:05 coda 2507
2006-10-23 22:09:58 coda 2507
2006-10-23 22:18:35 coda 2510
2006-10-24 11:58:27 coda 2521
2006-10-25 13:09:58 coda Initial setup checkout 20061025201012
2006-10-25 13:18:28 coda 2557
2006-10-27 20:01:43 coda 2653
2006-10-28 14:00:04 coda 2672
It's a Subversion SCM.
Everything else works like a charm, but diff_from_last_deploy falls
down on its face, every single time. My deploy.rb is definitely
customized, but it's mostly directories, symlinks, notifications, etc.
It doesn't (visibly, at least) touch revisions.log. It's not my
machine, since this happens both on the staging server and my
workstation. It's not the server, since it happens on at least four of
our servers.
Any ideas? Is this a bug? Is my revisions.log haunted? Is this
Capistrano's way of telling me to focus on the future?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---