kjs3
kjs3

Reputation: 6178

Capistrano is removing the latest deploy

I'm having a weird problem. I do a deploy and then the dir that just got uploaded is then deleted by the cleanup task. I haven't deployed to this site in well over a month but I didn't change the deploy recipe. Any ideas?

Here's the output. http://gist.github.com/267850

Upvotes: 1

Views: 775

Answers (3)

Lee Hambley
Lee Hambley

Reputation: 6370

This was a problem in 2.5.11 (a mistake on my part, I'm afraid) – rectified in 2.5.12– see capistrano.lighthouseapp.com if you are interested (ticket #88) for the discussion.

Upvotes: 2

allesklar
allesklar

Reputation: 9590

It looks to me that this line is the culprit:

 * executing "ln -nfs /home/user/public_html/mysite/shared/content_images /home/user/public_html/mysite/current/public/content_images"

Have you tinkered with this line lately? Any changes to the shared/content_images directory or its permissions? It seems the directory is missing.

Upvotes: 0

John Douthat
John Douthat

Reputation: 41179

Something is breaking during this step:

 ** keeping 5 of 9 deployed releases
  * executing "rm -rf /home/user/public_html/mysite/releases/20100103015806 /home/user/public_html/mysite/releases/20100103000220 /home/user/public_html/mysite/releases/20100103000202 /home/user/public_html/mysite/releases/20100102234212"

because 20100103015806 is the release currently being deployed. I would recommend turning off the

set :keep_releases, 5

code in your config/deploy.rb file until the issue can be fully debugged

Upvotes: 1

Related Questions