我正在作为 Heroku worker 运行 sidekiq
,如下面的 Procfile
所示:
worker: bundle exec sidekiq -c 5 -v
我希望它在 Ruby 1.9.3 而不是 1.9.1 上运行,如运行 heroku logs -t
时所示。我在 Gemfile
中指定了 ruby "1.9.3"
并且当我运行 git push heroku master
时它甚至显示了这个:
-----> Using Ruby version: ruby-1.9.3
根据 heroku 日志
,web
和 worker
dynos 似乎都在运行 1.9.1。任何帮助,将不胜感激。
最佳答案
没什么可担心的。 Bundler 将 gem 存储在 1.9.1 中以用于 ruby 1.9.3。有关详细信息,请参见此处:Why are we installing Ruby 1.9.2/1.9.3 gems into a 1.9.1 folder?
关于ruby - 如何为 Heroku worker(例如 sidekiq)指定 Ruby 版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15561945/