Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

replace unicorn with puma

  • Loading branch information...
commit 50d04972876921f37c39d8441dcdc48ea7e818b9 1 parent eb2d035
@ck3g authored
Showing with 17 additions and 1 deletion.
  1. +1 −0  Gemfile
  2. +3 −1 Gemfile.lock
  3. +13 −0 config/puma.rb
View
1  Gemfile
@@ -60,5 +60,6 @@ end
group :production do
gem "exception_notification"
gem "unicorn", "~> 4.6.0"
+ gem "puma"
end
View
4 Gemfile.lock
@@ -138,7 +138,6 @@ GEM
actionpack
method_source (0.8.1)
mime-types (1.21)
- multi_json (1.6.1)
multi_json (1.7.1)
multipart-post (1.1.5)
mysql2 (0.3.11)
@@ -161,6 +160,8 @@ GEM
pry-rails (0.2.2)
pry (>= 0.9.10)
psych (1.3.4)
+ puma (1.6.3)
+ rack (~> 1.2)
rack (1.4.5)
rack-cache (1.2)
rack (>= 0.4)
@@ -318,6 +319,7 @@ DEPENDENCIES
newrelic_rpm
pry-rails
psych (~> 1.3.4)
+ puma
rails (= 3.2.13)
rails_best_practices
rb-fsevent (>= 0.4.3)
View
13 config/puma.rb
@@ -0,0 +1,13 @@
+rails_env = ENV["RAILS_ENV"] || "development"
+
+threads 4,4
+
+deploy_to = "/home/kalastiuz/apps/homebugh"
+app_path = "#{deploy_to}/current"
+shared_path = "#{deploy_to}/shared"
+
+bind "unix://#{shared_path}/sockets/unicorn.sock"
+pidfile "#{app_path}/tmp/puma/pid"
+state_path "#{app_path}/tmp/puma/state"
+
+activate_control_app
Please sign in to comment.
Something went wrong with that request. Please try again.