【问题标题】:Capistrano and rvm the right wayCapistrano 和 rvm 的正确方法
【发布时间】:2012-07-13 11:16:56
【问题描述】:

我的客户端工作站上有这种情况。

当我尝试进行部署时,使用

cap deploy

我收到此错误消息:

capistrano is not part of the bundle. Add it to Gemfile. (Gem::LoadError)

好的!但我不想将它添加到 gemfile 中。我想在系统范围内使用它。 gem 当前已安装。

关于二进制的一些信息:

~/Code/ecommerce (master ✔) ᐅ which cap
cap: aliased to bundled_cap


~/Code/ecommerce (master ✔) ᐅ which bundled_cap
  bundled_cap () {
    _run-with-bundler cap $@
  }

有什么想法吗?我错了吗?

【问题讨论】:

  • 好吧,我想是关于 oh-my-szh 和 bundler 插件的问题!

标签: ruby-on-rails rvm capistrano


【解决方案1】:

似乎bundle exec 被添加到您的cap deploy 命令之前。

您使用的是bundler-execoh-my-zsh 之类的吗?

【讨论】:

  • 我用过noglob cap deploy
【解决方案2】:

好的,主要问题是 oh-my-zsh 别名和捆绑程序插件

这是文件 https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/bundler/bundler.plugin.zsh

现在又可以正常工作了!

【讨论】:

  • 感谢您提及!
猜你喜欢
  • 1970-01-01
  • 2019-12-08
  • 1970-01-01
  • 2012-04-26
  • 1970-01-01
  • 2011-10-06
  • 1970-01-01
  • 1970-01-01
  • 2023-03-17
相关资源
最近更新 更多