added puma as webserver for heroku

This commit is contained in:
2015-10-05 16:42:27 +02:00
parent 965a8d97d6
commit dbb24b3815
4 changed files with 13 additions and 0 deletions
+1
View File
@@ -36,6 +36,7 @@ gem 'slim-rails'
gem 'simple_form'
gem 'capybara'
gem 'rails-i18n'
gem 'puma'
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
+2
View File
@@ -98,6 +98,7 @@ GEM
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
origin (2.1.1)
puma (2.14.0)
rack (1.6.4)
rack-test (0.6.3)
rack (>= 1.0)
@@ -211,6 +212,7 @@ DEPENDENCIES
jquery-rails
mongoid (~> 5.0.0)
mongoid-rspec (= 3.0.0)
puma
rails (= 4.2.4)
rails-i18n
rspec-rails (~> 3.0)
+1
View File
@@ -0,0 +1 @@
web: bundle exec puma -C config/puma.rb
+9
View File
@@ -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'