Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ gem 'dotenv'
gem 'faye'
gem 'faye-redis'
gem 'private_pub', '1.0.3'
gem 'thin'
gem 'foreman'
gem 'puma'
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: bundle exec rackup config.ru -s thin -E production -p $PORT
web: bundle exec rackup config.ru -s Puma -E production -p $PORT
1 change: 0 additions & 1 deletion config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ options = {
}
}

Faye::WebSocket.load_adapter('thin')
run Faye::RackAdapter.new(options)

require 'logger'
Expand Down
9 changes: 9 additions & 0 deletions config/puma.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
workers Integer(ENV['WEB_CONCURRENCY'] || 2)
threads_count = Integer(ENV['MAX_THREADS'] || 5)
threads threads_count, threads_count

#preload_app!

rackup DefaultRackup
port ENV['PORT'] || 3001
environment ENV['RACK_ENV'] || 'development'
2 changes: 1 addition & 1 deletion x.run_local
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bundle exec rackup config.ru -s thin -E production --host /tmp/pubsub.sock
bundle exec rackup config.ru -s Puma -E production --host /tmp/pubsub.sock