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