Capistrano错误与成功复制的文件 [英] Capistrano error with successfully copied files

查看:191
本文介绍了Capistrano错误与成功复制的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Capistrano来部署一个使用 theme_support插件的应用程序,我添加了一个方法在我的部署配方中,在部署期间自动生成主题缓存。当我部署应用程序时,主题文件被正确地复制/缓存,但是Capistrano报告错误:

  ... 
*** [err :: servername] cp -r / var / www / app / releases / 20110218172542 / themes / 17 / images / var / www / app / releases / 20110218172542 / public / themes / 17 / images
*** [err :: servername] cp -r / var / www / app / releases / 20110218172542 / themes / 17 / stylesheets / var / www / app / releases / 20110218172542 / public / themes / 17 / stylesheets
*** [err :: servername] cp -r / var / www / app / releases / 20110218172542 / themes / 17 / javascript / var / www / app / releases / 20110218172542 / public / themes / 17 / javascript
*** [err :: servername] cp -r / var / www / app / releases / 20110218172542 / themes / 55 / images / var / www / app / releases / 20110218172542 / public / themes / 55 / images
...

据我所知,复制命令是成功的,并且运行耙子手动(或手动复制命令)工作无误。任何想法,为什么Capistrano将这些行报告为 err



编辑:下面接受的答案是为了这个原因。我也针对 Ruby theme_support ,所以希望将来可以解决这个问题。

解决方案< Patrick Reagan表示:所有这些意思是在STDERR(而不是STDOUT)上输出的结果是在 http://groups.google.com/group/capistrano/browse_thread/thread/64e95a26af3035cd



@jrdioko,我知道你读过他的答案,但我也在这里张贴。


I'm using Capistrano to deploy an application that uses the theme_support plugin, and I added a method in my deployment recipe to automatically generate the theme cache during a deploy. When I deploy the application the theme files are copied/cached correctly, but Capistrano reports an error:

...
*** [err :: servername] cp -r /var/www/app/releases/20110218172542/themes/17/images /var/www/app/releases/20110218172542/public/themes/17/images
*** [err :: servername] cp -r /var/www/app/releases/20110218172542/themes/17/stylesheets /var/www/app/releases/20110218172542/public/themes/17/stylesheets
*** [err :: servername] cp -r /var/www/app/releases/20110218172542/themes/17/javascript /var/www/app/releases/20110218172542/public/themes/17/javascript
*** [err :: servername] cp -r /var/www/app/releases/20110218172542/themes/55/images /var/www/app/releases/20110218172542/public/themes/55/images
...

As far as I can tell, the copy command was successful, and running the rake task manually (or the copy commands manually) works without error. Any idea then why Capistrano is reporting those lines as err?

Edit: See the accepted answer below for the reason. I also filed bugs against Ruby and theme_support, so hopefully this will be resolved in the future.

解决方案

Patrick Reagan says, "All those lines mean is that the output is being returned on STDERR (as opposed to STDOUT)" at http://groups.google.com/group/capistrano/browse_thread/thread/64e95a26af3035cd.

@jrdioko, I know you read his answer there, but I'm posting it here, too.

这篇关于Capistrano错误与成功复制的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆