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
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.
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
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.
精彩评论