Skip to content
No description or website provided.
Ruby
Find file
Pull request Compare This branch is 1 commit ahead of kylefritz:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Gemfile
Gemfile.lock
Procfile
Rakefile
app.rb
config.ru
readme.md

readme.md

Quick demo of sinatra app plus resque plus foreman

Setup

$ bundle install

Architecture:

The Procfile specifies multiple workers and multiple web interfaces. This allows you to extend your servers by distributing load.

Running

Foreman

Run everything in Procfile:

$ foreman start

checkout http://localhost:9393/ for the app that queues items. Thanks to redistogo for most of the code

checkout http://localhost:5678 for the resque monitoring app

Racke

Start resque:

$ rake resque:work

and in another start both web apps (one server):

$ rackup
Something went wrong with that request. Please try again.