added puma as webserver for heroku
This commit is contained in:
@@ -36,6 +36,7 @@ gem 'slim-rails'
|
|||||||
gem 'simple_form'
|
gem 'simple_form'
|
||||||
gem 'capybara'
|
gem 'capybara'
|
||||||
gem 'rails-i18n'
|
gem 'rails-i18n'
|
||||||
|
gem 'puma'
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ GEM
|
|||||||
nokogiri (1.6.6.2)
|
nokogiri (1.6.6.2)
|
||||||
mini_portile (~> 0.6.0)
|
mini_portile (~> 0.6.0)
|
||||||
origin (2.1.1)
|
origin (2.1.1)
|
||||||
|
puma (2.14.0)
|
||||||
rack (1.6.4)
|
rack (1.6.4)
|
||||||
rack-test (0.6.3)
|
rack-test (0.6.3)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
@@ -211,6 +212,7 @@ DEPENDENCIES
|
|||||||
jquery-rails
|
jquery-rails
|
||||||
mongoid (~> 5.0.0)
|
mongoid (~> 5.0.0)
|
||||||
mongoid-rspec (= 3.0.0)
|
mongoid-rspec (= 3.0.0)
|
||||||
|
puma
|
||||||
rails (= 4.2.4)
|
rails (= 4.2.4)
|
||||||
rails-i18n
|
rails-i18n
|
||||||
rspec-rails (~> 3.0)
|
rspec-rails (~> 3.0)
|
||||||
|
|||||||
@@ -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'] || 3000
|
||||||
|
environment ENV['RACK_ENV'] || 'development'
|
||||||
Reference in New Issue
Block a user