【问题标题】:sidekiq not starting with bundle execsidekiq 不是从 bundle exec 开始的
【发布时间】:2015-11-18 04:12:45
【问题描述】:

我正在尝试启动 sidekiq 并正在使用:

bundle exec sidekiq

从我的脚本和 gemfile 所在的目录中。 这就是我得到的:

2015-11-17T19:20:48.801Z 78733 TID-owl77getk INFO: ==================================================================
2015-11-17T19:20:48.801Z 78733 TID-owl77getk INFO:   Please point sidekiq to a Rails 3/4 application or a Ruby file  
2015-11-17T19:20:48.801Z 78733 TID-owl77getk INFO:   to load your worker classes with -r [DIR|FILE].
2015-11-17T19:20:48.801Z 78733 TID-owl77getk INFO: ==================================================================
2015-11-17T19:20:48.801Z 78733 TID-owl77getk INFO: sidekiq [options]
-c, --concurrency INT            processor threads to use
-d, --daemon                     Daemonize process
-e, --environment ENV            Application environment
-g, --tag TAG                    Process tag for procline
-i, --index INT                  unique process index on this machine
-q, --queue QUEUE[,WEIGHT]       Queues to process with optional weights
-r, --require [PATH|DIR]         Location of Rails application with workers or file to require
-t, --timeout NUM                Shutdown timeout
-v, --verbose                    Print more verbose output
-C, --config PATH                path to YAML config file
-L, --logfile PATH               path to writable logfile
-P, --pidfile PATH               path to pidfile
-V, --version                    Print version and exit
-h, --help                       Show help

【问题讨论】:

    标签: ruby sidekiq


    【解决方案1】:

    当前目录必须是 Rails 应用程序,或者您需要使用 -r 加载您的 Ruby 脚本,以便正确配置 Sidekiq。

    bundle exec sidekiq -r ./script.rb
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-18
      • 2016-07-20
      • 1970-01-01
      • 2014-02-12
      • 1970-01-01
      • 2021-09-22
      • 2016-10-24
      • 2011-09-29
      相关资源
      最近更新 更多