2

我正在设置一个新的服务器,带有 RVM,CAPSTRNO。

但是当我部署服务器时,出现错误:

  * 2013-06-13 16:39:50 executing `deploy:assets:update_asset_mtimes'
  * executing "[ -e /home/rails/server/blog/shared/assets/manifest.yml ] && cat /home/rails/server/blog/shared/assets/manifest.yml || echo"
    servers: ["121.196.130.171"]
    [121.196.130.171] executing command
    command finished in 1600ms
*** [deploy:update_code] rolling back
  * executing "rm -rf /home/rails/server/blog/releases/20130613083928; true"
    servers: ["121.196.130.171"]
    [121.196.130.171] executing command
 ** [out :: 121.196.130.171] Saving wrappers to '/data/home/rails/.rvm//bin'
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] 
 ** [out :: 121.196.130.171] Saving wrappers to '/data/home/rails/.rvm//bin'
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] 
 ** [out :: 121.196.130.171] Saving wrappers to '/data/home/rails/.rvm//bin'
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] .
 ** [out :: 121.196.130.171] 
    command finished in 1610ms
/home/rails/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): control characters are not allowed at line 1 column 1 (Psych::SyntaxError)

我从中找到了答案: 使用 Capistrano 部署时出现 psych.rb 错误“在此上下文中不允许映射”

但是当我使用 cap 时,如何禁用输出“将包装器保存到.......”?还有 bash shell "rvm use ***" 吗?

谢谢!

4

1 回答 1

1

当我遵循 mpapis 在https://github.com/wayneeseguin/rvm/issues/1964#issuecomment-19437861上的建议时,我发现 rvm 停止打印“将包装器保存到......” ,即删除执行来自after_user_textmate您的 rvm 安装钩子的权限。

对于我的系统,我运行了(替代你自己的 rvm 安装目录):

chmod a-x /usr/local/rvm/hooks/after_use_textmate
于 2013-09-10T22:34:02.967 回答