Commit 729d9c6

mo khan <mo@mokhan.ca>
2015-06-25 03:12:39
install sidekiq.
1 parent f73d426
config/application.rb
@@ -35,5 +35,6 @@ module Stronglifters
 
     # Do not swallow errors in after_commit/after_rollback callbacks.
     config.active_record.raise_in_transactional_callbacks = true
+    config.active_job.queue_adapter = :sidekiq
   end
 end
Gemfile
@@ -41,6 +41,7 @@ gem 'sequel'
 gem 'rubyzip', require: "zip"
 gem 'font-awesome-rails'
 gem 'ractive-rails'
+gem 'sidekiq'
 
 source 'https://rails-assets.org' do
   gem 'rails-assets-ractive'
Gemfile.lock
@@ -71,6 +71,8 @@ GEM
       rack (>= 1.0.0)
       rack-test (>= 0.5.4)
       xpath (~> 2.0)
+    celluloid (0.16.0)
+      timers (~> 4.0.0)
     chartkick (1.3.2)
     choice (0.2.0)
     cliver (0.3.2)
@@ -87,6 +89,7 @@ GEM
     coffee-script-source (1.9.1.1)
     colorize (0.7.7)
     columnize (0.9.0)
+    connection_pool (2.2.0)
     coveralls (0.8.1)
       json (~> 1.8)
       rest-client (>= 1.6.8, < 2)
@@ -137,6 +140,7 @@ GEM
     groupdate (2.4.0)
       activesupport (>= 3)
     highline (1.7.2)
+    hitimes (1.2.2)
     http-cookie (1.0.2)
       domain_name (~> 0.5)
     i18n (0.7.0)
@@ -235,6 +239,9 @@ GEM
     rake-compiler (0.9.5)
       rake
     rdoc (4.2.0)
+    redis (3.2.1)
+    redis-namespace (1.5.2)
+      redis (~> 3.0, >= 3.0.4)
     ref (1.0.5)
     rest-client (1.8.0)
       http-cookie (>= 1.0.2, < 2.0)
@@ -273,6 +280,12 @@ GEM
       json (~> 1.7, >= 1.7.7)
       rdoc (~> 4.0)
     sequel (4.23.0)
+    sidekiq (3.4.1)
+      celluloid (~> 0.16.0)
+      connection_pool (>= 2.1.1)
+      json
+      redis (>= 3.0.6)
+      redis-namespace (>= 1.3.1)
     simplecov (0.10.0)
       docile (~> 1.1.0)
       json (~> 1.8)
@@ -309,6 +322,8 @@ GEM
     thread (0.2.0)
     thread_safe (0.3.5)
     tilt (1.4.1)
+    timers (4.0.1)
+      hitimes
     tins (1.5.2)
     turbolinks (2.5.3)
       coffee-rails
@@ -382,6 +397,7 @@ DEPENDENCIES
   scale
   sdoc (~> 0.4)
   sequel
+  sidekiq
   spring
   spring-commands-rspec
   spring-commands-teaspoon
Procfile
@@ -1,1 +1,2 @@
 web: bin/rails s -p 5000 -b 0.0.0.0
+worker: bundle exec sidekiq