【问题标题】:Rails - God - LoadErrorRails - 上帝 - LoadError
【发布时间】:2012-05-28 11:37:15
【问题描述】:

我已经安装了 god 来监控和启动/停止/重新启动我的 resque 任务。我遇到的问题是我无法加载上帝的配置文件。

它给了我这个错误:

$god load config/resque.god
The server is not available (or you do not have permissions to access it)

那我试试

$sudo god load config/resque.god
.../.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find bundler (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (Gem::LoadError)...

我在这里缺少什么?我需要给神宝石某种许可吗?我在 OSX 上。

【问题讨论】:

  • 上帝已经在运行了吗? ps aux | grep god

标签: ruby-on-rails macos resque permission-denied god


【解决方案1】:

试试

rvmsudo god load config/resque.god

【讨论】:

    【解决方案2】:

    您是否尝试将 resque 动态加载到已经运行的 God 实例中?

    如果没有,您可以使用 -c

    加载配置文件

    尝试运行

    $god -c config/resque.god

    load 命令会尝试将配置文件动态加载到已经运行的god 中。它告诉你上帝没有运行,所以你不能动态加载配置文件。

    有关加载命令的更多信息,请参阅dynamically loading config files into an already running god

    您可以检查哪些工作人员正在使用

    god status
    

    如果上帝没有运行,它会给你同样的服务器不可用消息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-25
      相关资源
      最近更新 更多