How to make Sidekiq workers not to load Rails environment

My Rails app starts a Sidekiq worker that only sends text messages. I am sure it doesn’t need whole Rails env to work (it takes only client’s phone and text to send as params). But currently the worker loads it and thus grab a lot of memory from my tiny DigitalOcean droplet (as like separate Rails application).

Is there any way to tell the worker path to only file it should require?

Source: ruby

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.