部署 [SOLVED] Capistrano 在 bundle install 时出错 tput: No value for $TERM and no -T specified

匿名 · 2012年05月17日 · 最后由 abitno 回复于 2012年05月17日 · 3226 次阅读

现在换服务器,用之前的 capistrano 配置文件,一切正常,直到运行到 bundle install 环节时会出错

  * executing "cd /home/webapp/apps/vplayer.net/releases/20120517032004 && bundle install --gemfile /home/webapp/apps/vplayer.net/releases/20120517032004/Gemfile --path /home/webapp/apps/vplayer.net/shared/bundle --deployment --quiet --without development test"
    servers: ["vplayer.net"]
    [vplayer.net] executing command
*** [err :: vplayer.net] tput: No value for $TERM and no -T specified
*** [err :: vplayer.net] tput: No value for $TERM and no -T specified
 ** [out :: vplayer.net] ERROR: Gem bundler is not installed, run `gem install bundler` first.

TERM 变量是设置好了的,同时 bundle install 也是可以在服务器上执行的。Capistrano 的用户也是 webapp

rvm 是最新版本的,也试过用旧的服务器上的 rvm

大家有什么指点的没

顺便感觉 ruby china 这个选择节点的形式得换换了,这么多节点,一个列表很不实用

是不是 deploy.rb 没有增加

require "bundler/capistrano" 

搞错了,是要加这个

require "rvm/capistrano"   # Fixed: ERROR: Gem bundler is not installed, run `gem install bundler` first
匿名 #3 2012年05月17日

#2 楼 @saberma

果然没加,去看了 rvm 的文档,发现好多东西不知道的,现在这个问题解决了

非常感谢

需要 登录 后方可回复, 如果你还没有账号请 注册新账号