How do I setup sidekiq with Rails on Linode?
I come from mostly a Heroku background, so I'm currently learning to manage my own server.
On Heroku, you have to pay for a separate worker dyno that houses the sidekiq instance. Is that how I would similarly setup heroku here? Or can I setup Heroku on the same linode node?
1 Reply
In order to run Sidekiq with Rails, you just need to install the two services on your instance and get them to interact with each other.
The easiest thing I can suggest would be to deploy the Ruby on Rails Marketplace App first and get your app up and running using the Linode Documentation.
Next, install Sidekiq on your instance. There are resources on the internet that will guide you on how to do this. This article titled Setup Active Job with Sidekiq in Rails has instructions for getting Sidekiq working within an active job (although I found that you need to install the service with sudo gem install sidekiq
as opposed to just gem 'sidekiq'
).
Another article titled Rails, Sidekiq : full tutorial gives you a step-by-step guide on setting up Sidekiq and Rails while also listing the perquisites needed to operate the app.
If you're still having issues, you can always ask questions to the Communities that have expertise in these applications: