From 2d226cbe85e747d1e3d54e6721237c955c0c13be Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Mon, 23 Dec 2024 15:24:56 +1300 Subject: [PATCH] Documentation. --- examples/puma/application.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/puma/application.rb b/examples/puma/application.rb index 6de687e..58ad39a 100755 --- a/examples/puma/application.rb +++ b/examples/puma/application.rb @@ -9,6 +9,10 @@ class Application < Async::Container::Controller def setup(container) container.spawn(name: "Web", restart: true) do |instance| + # Replace the current process with Puma: + # instance.exec("bundle", "exec", "puma", "-C", "puma.rb", ready: false) + + # Manage a child process of puma / puma workers: pid = ::Process.spawn("puma") instance.ready!