【问题标题】:is figaro available as a command?figaro 可以作为命令使用吗?
【发布时间】:2016-05-28 02:58:38
【问题描述】:

用于 Ruby on Rails 的 figaro gem。

当我按照 Figaro 的 GitHub README 中的说明使用此命令时,

$ figaro heroku:set -e production
-bash: figaro: command not found

我尝试了许多不同的方式使用网络上的建议(StackOverFlow 和其他任何地方)。

安装 figaro gem 真的会安装 figaro 命令吗?

我正在使用 Figaro 1.0.0。

【问题讨论】:

    标签: ruby-on-rails ruby github rubygems


    【解决方案1】:

    是的:https://github.com/laserlemon/figaro/blob/master/figaro.gemspec#L22

    我假设你已经通过 bundler 安装了 gem,可能需要bundle exec figaro [...]

    【讨论】:

    • 必须使用“bundle exec”吗?这么简单?谢谢。欣赏它。
    • 这是一个问题还是一个答案?它解决了您的问题吗?
    • 是的,它回答了我的问题。谢谢
    猜你喜欢
    • 1970-01-01
    • 2011-06-16
    • 1970-01-01
    • 2012-06-03
    • 1970-01-01
    • 1970-01-01
    • 2018-06-17
    • 2011-01-23
    • 2013-07-14
    相关资源
    最近更新 更多