Skip to content
This repository was archived by the owner on Jul 14, 2019. It is now read-only.

Commit 66b823f

Browse files
Add procfile
1 parent 27b7c08 commit 66b823f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: bundle exec puma -C config/puma.rb

config/puma.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
workers ENV.fetch('WEB_CONCURRENCY') { 2 }.to_i
2+
threads_count = ENV.fetch('MAX_THREADS') { 5 }.to_i
3+
threads threads_count, threads_count
4+
5+
preload_app!
6+
7+
rackup DefaultRackup
8+
port ENV.fetch('PORT') { 3000 }
9+
environment ENV.fetch('RACK_ENV') { 'development' }
10+
11+
on_worker_boot do
12+
ActiveRecord::Base.establish_connection
13+
end

0 commit comments

Comments
 (0)