Capistrano error with successfully copied files

此生再无相见时 提交于 2019-12-08 05:14:05

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/5044992/capistrano-error-with-successfully-copied-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!