Skip to content

Commit 4cfebe5

Browse files
committed
Use Unicorn.
1 parent dd0fd3b commit 4cfebe5

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ gem 'grape-swagger'
77
gem 'activemodel'
88
gem 'kaminari', require: 'kaminari/grape'
99
gem 'rack-rewrite'
10+
gem 'unicorn'
1011

1112
group :development do
1213
gem 'rake'

Gemfile.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ GEM
8080
kaminari (0.16.3)
8181
actionpack (>= 3.0.0)
8282
activesupport (>= 3.0.0)
83+
kgio (2.10.0)
8384
loofah (2.0.3)
8485
nokogiri (>= 1.5.9)
8586
mini_portile2 (2.0.0)
@@ -111,6 +112,7 @@ GEM
111112
rails-html-sanitizer (1.0.3)
112113
loofah (~> 2.0)
113114
rainbow (2.1.0)
115+
raindrops (0.15.0)
114116
rake (11.1.1)
115117
representable (2.3.0)
116118
uber (~> 0.0.7)
@@ -141,6 +143,10 @@ GEM
141143
thread_safe (~> 0.1)
142144
uber (0.0.15)
143145
unicode-display_width (1.0.2)
146+
unicorn (5.0.1)
147+
kgio (~> 2.6)
148+
rack
149+
raindrops (~> 0.7)
144150
uri_template (0.7.0)
145151
virtus (1.0.5)
146152
axiom-types (~> 0.1)
@@ -164,6 +170,7 @@ DEPENDENCIES
164170
rake
165171
rspec
166172
rubocop
173+
unicorn
167174

168175
BUNDLED WITH
169176
1.10.6

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: bundle exec unicorn -p $PORT

Rakefile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ task :environment do
1010
require File.expand_path('../config/environment', __FILE__)
1111
end
1212

13-
require 'rspec/core'
14-
require 'rspec/core/rake_task'
13+
unless ENV['RACK_ENV'] == 'production'
14+
require 'rspec/core'
15+
require 'rspec/core/rake_task'
1516

16-
RSpec::Core::RakeTask.new(:spec) do |spec|
17-
spec.pattern = FileList['spec/api/*_spec.rb']
18-
end
17+
RSpec::Core::RakeTask.new(:spec) do |spec|
18+
spec.pattern = FileList['spec/api/*_spec.rb']
19+
end
1920

20-
require 'rubocop/rake_task'
21-
RuboCop::RakeTask.new(:rubocop)
21+
require 'rubocop/rake_task'
22+
RuboCop::RakeTask.new(:rubocop)
2223

23-
task default: [:rubocop, :spec]
24+
task default: [:rubocop, :spec]
25+
end

0 commit comments

Comments
 (0)