我正在设置一个新的服务器,带有 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 ***" 吗?
谢谢!