Skip to content

Commit

Permalink
Documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Dec 23, 2024
1 parent 411ea4f commit 2d226cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/puma/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit 2d226cb

Please sign in to comment.