Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit 73391bb

Browse files
committed
Preparing to heroku
1 parent 14271cf commit 73391bb

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

Gemfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
source 'https://rubygems.org'
22

3+
ruby '2.2.2'
4+
35
gem 'bundler'
46
gem 'rake'
57

@@ -8,11 +10,9 @@ gem 'lotus-model', '~> 0.4'
810

911
gem 'pg'
1012

13+
gem 'puma'
14+
1115
group :test do
1216
gem 'rspec'
1317
gem 'capybara'
1418
end
15-
16-
group :production do
17-
# gem 'puma'
18-
end

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ GEM
4444
nokogiri (1.6.6.2)
4545
mini_portile (~> 0.6.0)
4646
pg (0.18.2)
47+
puma (2.11.3)
48+
rack (>= 1.1, < 2.0)
4749
rack (1.6.4)
4850
rack-test (0.6.3)
4951
rack (>= 1.0)
@@ -80,5 +82,6 @@ DEPENDENCIES
8082
lotus-model (~> 0.4)
8183
lotusrb (= 0.4.0)
8284
pg
85+
puma
8386
rake
8487
rspec

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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
workers Integer(ENV['PUMA_WORKERS'] || 3)
2+
threads Integer(ENV['MIN_THREADS'] || 1), Integer(ENV['MAX_THREADS'] || 16)
3+
4+
preload_app!
5+
6+
port ENV['PORT'] || 3000
7+
environment ENV['RACK_ENV'] || ENV['LOTUS_ENV'] || 'development'

0 commit comments

Comments
 (0)