mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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:
parent
e593fbd0d9
commit
55edd8a571
2 changed files with 2 additions and 2 deletions
2
Procfile
2
Procfile
|
|
@ -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
|
worker: bundle exec rails jobs:work
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ environment ENV.fetch("RAILS_ENV") { "development" }
|
||||||
# Workers do not work on JRuby or Windows (both of which do not support
|
# Workers do not work on JRuby or Windows (both of which do not support
|
||||||
# processes).
|
# processes).
|
||||||
#
|
#
|
||||||
workers ENV.fetch("WEB_CONCURRENCY") { 2 }
|
workers ENV.fetch("WEB_CONCURRENCY") { 1 }
|
||||||
|
|
||||||
# Use the `preload_app!` method when specifying a `workers` number.
|
# Use the `preload_app!` method when specifying a `workers` number.
|
||||||
# This directive tells Puma to first boot the application and load code
|
# This directive tells Puma to first boot the application and load code
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue