Skip to content
This repository
Browse code

use foreman and thin

  • Loading branch information...
commit 65643a3fcb83d08b924bf182baced9e077b517cb 1 parent 34cbd7d
Chris Rhoden authored February 13, 2013
2  Gemfile
@@ -66,6 +66,8 @@ gem 'sidekiq'
66 66
 group :development, :production do
67 67
   gem 'sinatra' # for sidekiq
68 68
   gem "autoscaler", "~> 0.2.0"
  69
+  gem "foreman"
  70
+  gem "thin"
69 71
 end
70 72
 
71 73
 # misc
10  Gemfile.lock
@@ -99,6 +99,7 @@ GEM
99 99
     coffee-script-source (1.4.0)
100 100
     connection_pool (1.0.0)
101 101
     copyrighter (1.0.0)
  102
+    daemons (1.1.9)
102 103
     dalli (2.6.2)
103 104
     decent_exposure (2.1.0)
104 105
     devise (2.2.3)
@@ -108,6 +109,7 @@ GEM
108 109
       warden (~> 1.2.1)
109 110
     diff-lcs (1.1.3)
110 111
     erubis (2.7.0)
  112
+    eventmachine (1.0.0)
111 113
     excon (0.16.10)
112 114
     execjs (1.4.0)
113 115
       multi_json (~> 1.0)
@@ -133,6 +135,8 @@ GEM
133 135
     font-awesome-sass-rails (3.0.0.1)
134 136
       railties (>= 3.1.1)
135 137
       sass-rails (>= 3.1.1)
  138
+    foreman (0.61.0)
  139
+      thor (>= 0.13.6)
136 140
     formatador (0.2.4)
137 141
     geocoder (1.1.6)
138 142
     guard (1.6.2)
@@ -304,6 +308,10 @@ GEM
304 308
       railties (~> 3.0)
305 309
     temple (0.5.5)
306 310
     terminal-table (1.4.5)
  311
+    thin (1.5.0)
  312
+      daemons (>= 1.0.9)
  313
+      eventmachine (>= 0.12.6)
  314
+      rack (>= 1.0.0)
307 315
     thor (0.17.0)
308 316
     tilt (1.3.3)
309 317
     timers (1.1.0)
@@ -350,6 +358,7 @@ DEPENDENCIES
350 358
   factory_girl_rails
351 359
   fog
352 360
   font-awesome-sass-rails
  361
+  foreman
353 362
   geocoder
354 363
   guard-rspec
355 364
   guard-spork
@@ -371,6 +380,7 @@ DEPENDENCIES
371 380
   slim-rails
372 381
   spork-rails
373 382
   strong_parameters
  383
+  thin
374 384
   tire
375 385
   uglifier (>= 1.0.3)
376 386
   will_paginate
2  Procfile
... ...
@@ -0,0 +1,2 @@
  1
+web: bundle exec rails server thin -p $PORT -e $RACK_ENV
  2
+worker: bundle exec sidekiq
2  config/environments/production.rb
@@ -67,6 +67,8 @@
67 67
 
68 68
   config.action_mailer.default_url_options = { :host => 'pop-up-archive.herokuapp.com' }
69 69
 
  70
+  require 'autoscaler/sidekiq'
  71
+  require 'autoscaler/heroku_scaler'
70 72
   Sidekiq.configure_client do |config|
71 73
     config.client_middleware do |chain|
72 74
       chain.add Autoscaler::Sidekiq::Client, 'default' => Autoscaler::HerokuScaler.new

0 notes on commit 65643a3

Please sign in to comment.
Something went wrong with that request. Please try again.