Skip to content

Commit cca37e6

Browse files
author
Joel Courtney
committed
Now using a Procfile because awesomeness
1 parent e1acc5d commit cca37e6

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ source 'https://rubygems.org' do
66
gem 'coffee-script'
77
gem 'haml'
88
gem 'linguistics'
9+
gem 'puma'
910
gem 'rack'
1011
gem 'sass'
1112
gem 'sinatra'

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ GEM
2020
parser (2.5.3.0)
2121
ast (~> 2.4.0)
2222
powerpack (0.1.2)
23+
puma (3.12.0)
2324
rack (2.0.6)
2425
rack-protection (2.0.4)
2526
rack
@@ -57,6 +58,7 @@ DEPENDENCIES
5758
coffee-script!
5859
haml!
5960
linguistics!
61+
puma!
6062
rack!
6163
rubocop!
6264
sass!

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+
# frozen_string_literal: true
2+
3+
workers Integer(ENV['WEB_CONCURRENCY'] || 0)
4+
threads_count = Integer(ENV['RAILS_MAX_THREADS'] || 5)
5+
threads threads_count, threads_count
6+
7+
preload_app!
8+
9+
rackup DefaultRackup
10+
port ENV['PORT'] || 3000
11+
environment ENV['RACK_ENV'] || 'development'
12+
13+
on_worker_boot {}

0 commit comments

Comments
 (0)