|
@@ -9,12 +9,16 @@ threads threads_count, threads_count
|
9
|
9
|
|
10
|
10
|
# Specifies the `port` that Puma will listen on to receive requests, default is 3000.
|
11
|
11
|
#
|
12
|
|
-port ENV.fetch("PORT") { 3000 }
|
|
12
|
+bind ENV.fetch("PUMA_BIND") { 'tcp://127.0.0.1:3000'}
|
13
|
13
|
|
14
|
14
|
# Specifies the `environment` that Puma will run in.
|
15
|
15
|
#
|
16
|
16
|
environment ENV.fetch("RAILS_ENV") { "development" }
|
17
|
17
|
|
|
18
|
+state_path "#{ENV['AARDBEI_PATH']}/tmp/pids/puma.state"
|
|
19
|
+stdout_redirect "#{ENV['AARDBEI_PATH']}/log/stdout", "#{ENV['AARDBEI_PATH']}/log/stderr", true
|
|
20
|
+
|
|
21
|
+
|
18
|
22
|
# Specifies the number of `workers` to boot in clustered mode.
|
19
|
23
|
# Workers are forked webserver processes. If using threads and workers together
|
20
|
24
|
# the concurrency of the application would be max `threads` * `workers`.
|