質問編集履歴
1
config/puma.rbの記述を追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -344,4 +344,22 @@
|
|
344
344
|
|
345
345
|
# config/puma.rb
|
346
346
|
|
347
|
+
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
|
348
|
+
|
349
|
+
threads threads_count, threads_count
|
350
|
+
|
351
|
+
port ENV.fetch("PORT") { 3000 }
|
352
|
+
|
353
|
+
environment ENV.fetch("RAILS_ENV") { "development" }
|
354
|
+
|
355
|
+
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
|
356
|
+
|
357
|
+
plugin :tmp_restart
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
app_root = File.expand_path("../..", __FILE__)
|
362
|
+
|
363
|
+
bind "unix://#{app_root}/tmp/sockets/puma.sock"
|
364
|
+
|
347
|
-
```
|
365
|
+
```
|