Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6389383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:23:47+00:00 2026-05-25T03:23:47+00:00

On my dev machine, I am able to type resque-web in a console and

  • 0

On my dev machine, I am able to type resque-web in a console and it launches a new tab on my browser which shows the Resque interface.

On Heroku, Cedar stack, how can I do the same thing? i.e. I would like to see Resque’s interface for my Heroku app.

EDIT

in config/initializers/resque.rb

require 'resque'
require 'resque/server'

uri = URI.parse(APP_CONFIG['redis_to_go_url'])
Resque.redis = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)

# Load all jobs at /app/jobs
Dir["#{Rails.root}/app/jobs/*.rb"].each { |file| require file }

in routes.rb

mount Resque::Server.new, :at => '/resque'

Everything works. I am now able to see the Resque web interface. However, I would like to protect this from public view. Possibly with a username and password. How can this be done?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:23:48+00:00Added an answer on May 25, 2026 at 3:23 am

    I don’t really know heroku, but if you have a config.ru or Rackup file you can run resque-web inside your own rails app, here’s a sample of how to do it:

    require File.dirname(__FILE__) + '/config/environment'
    require 'resque/server'
    
    Resque::Server.class_eval do
    
      use Rack::Auth::Basic do |email, password|
        user = User.authenticate( email, password )
        user && user.admin?
      end
    
    end
    
    app = Rack::Builder.new {
      use Rails::Rack::Static
    
      map "/resque" do
        run Resque::Server
      end
    
      map "/" do
        run ActionController::Dispatcher.new
      end
    }.to_app
    
    run app
    

    EDIT

    As you are already mounting it inside of rails, just add this statement in an initializer file:

    Resque::Server.class_eval do
    
      use Rack::Auth::Basic do |email, password|
        user = User.authenticate( email, password )
        user && user.admin?
      end
    
    end
    

    Obviously, make User.authenticate( email, password ) whatever you use to authenticate your users.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF service which works on my dev machine running IIS 7,
On my dev machine, I want to be able to have an SSL server,
I need to encrypt my web.config file on my dev machine (Windows XP SP-3)
I've got a Windows 7 machine upon which I do both PHP/MySql Dev, and
On a Vista dev machine I used this code successfully to change user Administrator
When I log in on my dev machine in an ROR application, I should
My app (winforms .net 2.0 / vs2008) works fine on my dev machine but
I wrote the following Nant script on my Vista dev machine and was pleased
I am developing an ASP .Net MVC application and on my dev machine, the
I have an app.Config that was created on the dev machine running Windows 7.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.