Skip to content

Commit 2d226cb

Browse files
committed
Documentation.
1 parent 411ea4f commit 2d226cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/puma/application.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
class Application < Async::Container::Controller
1010
def setup(container)
1111
container.spawn(name: "Web", restart: true) do |instance|
12+
# Replace the current process with Puma:
13+
# instance.exec("bundle", "exec", "puma", "-C", "puma.rb", ready: false)
14+
15+
# Manage a child process of puma / puma workers:
1216
pid = ::Process.spawn("puma")
1317

1418
instance.ready!

0 commit comments

Comments
 (0)