Resque a perfect queuing system up till now and well documented but i was unable to get that how to configure it with in application instead of running it separately …
As Resque console is sanitara app so we can mount it in rails 3 by just adding it in routes file
mount Resque::Server, :at=> “/resque”
and to add http authentication just add configuration file in initializers with following code
Resque::Server.use(Rack::Auth::Basic) do |user, password|
password == “password”
end
That’s it you are good to go with resque web console with your application server.
:)
As Resque console is sanitara app so we can mount it in rails 3 by just adding it in routes file
mount Resque::Server, :at=> “/resque”
and to add http authentication just add configuration file in initializers with following code
Resque::Server.use(Rack::Auth::Basic) do |user, password|
password == “password”
end
That’s it you are good to go with resque web console with your application server.
:)
No comments:
Post a Comment