Looking for Ruby developers for your next project?
Contact Us

How to run resque web interface in standalone ruby app | Inkoop Blog

Resque creates background jobs which stores data in Redis, placing those jobs on multiple queues, and processing them asynchornously. We talk about how to in standalone ruby app.

Posted by Ameena on 08 Dec 2017
How to run resque web interface in standalone ruby app | Inkoop Blog

What is Resque?

Resque creates background jobs which stores data in Redis, placing those jobs on multiple queues, and processing them asynchornously.

What is Rackup?

Rackup is a command that comes with the rack middle and uses the settings in your config.ru and starts a server based off of those. This is usually used in production servers.

What is thin server?

Thin server is a small and fast Ruby web server.

RACKUP Web Interface

# rackup config.ru

require 'thin'
require 'resque'
require 'resque/server'
require 'resque/scheduler/server'

run Rack::URLMap.new \
     "/" => Resque::Server.new

If you want to do basic authentication then use the below code,

...
Resque::Server.use(Rack::Auth::Basic) do |user, password|
  user = "username"
  password == "password"
end

run Rack::URLMap.new \
     "/" => Resque::Server.new

keep Coding !!!

Ameena


Looking for Ruby developers for your next project?
Contact Us

Related Services.



Hire ReactJS Developers
Hire Gatsby Developers
Hire NextJS Developers

We support the Open Source community.



Have a Project in mind?