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 7999111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:24:32+00:00 2026-06-04T15:24:32+00:00

How do i setup queue_classic background jobs on EC2 using the rubber gem? I

  • 0

How do i setup queue_classic background jobs on EC2 using the rubber gem?
I tried using foreman export but i’m not sure where to run it (app or web role?).
My failed attempt is using http://blog.sosedoff.com/2011/07/24/foreman-capistrano-for-rails-3-applications/.

Should i be creating a new instance to run these jobs? (or a new role?)

Thanks for the help!

  • 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-06-04T15:24:33+00:00Added an answer on June 4, 2026 at 3:24 pm

    Figured it out.

    First create a Procfile with the queue_classic rake task (see http://blog.daviddollar.org/2011/05/06/introducing-foreman.html)

    Then i added foreman to my host (make sure you have a procfile for that environment, ex: Procfile.production)

    # Foreman tasks
    namespace :foreman do
      desc 'Export the Procfile to Ubuntu upstart scripts'
      task :export, :roles => :queue do
    
        run "cd #{release_path} && bundle exec foreman export upstart /etc/init -f ./Procfile.#{Rubber.env} -a #{application} -u #{user} -l #{release_path}/log/foreman"
      end
    
      desc "Start the application services"
      task :start, :roles => :queue do
    
        rsudo "start #{application}"
      end
    
      desc "Stop the application services"
    
      task :stop, :roles => :queue do
        rsudo "stop #{application}"
    
      end
    
      desc "Restart the application services"
      task :restart, :roles => :queue do
        rsudo "stop #{application}; start #{application}"
        #run "sudo start #{application} || sudo restart #{application}"
      end
    end
    after "deploy:update", "foreman:export"    # Export foreman scripts
    before "deploy:restart", "foreman:restart"   # Restart application scripts
    after "deploy:stop", "foreman:stop"   # Restart application scripts
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a resque gem to process my background process. I have setup
I want to setup a serialized task queue using NSOperationQueue but I'm a little
I have setup multiple SQL Service Broker Queues in a database but have not
Setup: Contact database using 4 tables Contacts Cities States Zips Structure: CREATE TABLE `contacts`
Setup : Using PowerBuilder 6.5. I have a composite report (with a report header)
I have a simple messaging queue setup and running using the Zend_Queue object heirarchy.
I tried installing django-utils from source code from github and using pip. The installation
I am trying to setup a mapper job on Google app engine using the
I'm using Django and Celery and I'm trying to setup routing to multiple queues.
Trying to get started using phpunit and can't get it installed/setup properly. When I

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.