Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
開発中にローカルで実行するサーバーが多すぎると、手に負えなくなることがあります。
Resque ( Redisを使用)を備えた Rails アプリで、resque を実行する必要を回避し、すぐに perform メソッドを実行するにはどうすればよいでしょうか?
開発中にこれら 2 つのサーバーを常に実行する必要がないようにしたいと考えています。
これを一番下に追加するだけですconfig/environments/development.rb
config/environments/development.rb
# bypass resque in the development environment if Rails.env.development? module Resque def self.enqueue(klass, *args) klass.perform(*args) end end end