From 610177d3f5276ca675ac14ee678e586fd0dff274 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Wed, 24 Jan 2024 00:20:23 -0800 Subject: [PATCH] Remove supervisor from the Falcon process? Idk what it's doing, but what I do know is the Falcon process is weirdly slow to restart on deploy. My hope was this would fix it cuz the supervisor was maybe blocking process exits? Idk, something to look into, I don't think this fixed it but I also don't think it broke anything, and I think systemd is doing a fine job monitoring already? idk --- falcon.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/falcon.rb b/falcon.rb index ee96aaa8..8eee23c2 100644 --- a/falcon.rb +++ b/falcon.rb @@ -1,12 +1,10 @@ #!/usr/bin/env -S falcon host # frozen_string_literal: true -load :rack, :supervisor +load :rack hostname = File.basename(__dir__) rack hostname do endpoint Async::HTTP::Endpoint.parse('http://localhost:3000'). with(protocol: Async::HTTP::Protocol::HTTP1) end - -supervisor