Change how we start puma

Puma is integrated with rails server, no need to start it manually.
Takes care of logging etc. We also shouldn't run multiple workers
unless we absolutely want to.
This commit is contained in:
Henne Vogelsang
2019-03-27 10:58:10 +01:00
committed by Ana María Martínez Gómez
parent e593fbd0d9
commit 55edd8a571
2 changed files with 2 additions and 2 deletions

View File

@@ -1,2 +1,2 @@
web: bundle exec puma -C config/puma.rb
web: bundle exec rails server -b 0.0.0.0
worker: bundle exec rails jobs:work

View File

@@ -21,7 +21,7 @@ environment ENV.fetch("RAILS_ENV") { "development" }
# Workers do not work on JRuby or Windows (both of which do not support
# processes).
#
workers ENV.fetch("WEB_CONCURRENCY") { 2 }
workers ENV.fetch("WEB_CONCURRENCY") { 1 }
# Use the `preload_app!` method when specifying a `workers` number.
# This directive tells Puma to first boot the application and load code