13 lines
264 B
Ruby
13 lines
264 B
Ruby
|
#!/usr/bin/env -S falcon host
|
||
|
# frozen_string_literal: true
|
||
|
|
||
|
load :rack, :supervisor
|
||
|
|
||
|
hostname = File.basename(__dir__)
|
||
|
rack hostname do
|
||
|
endpoint Async::HTTP::Endpoint.parse('http://localhost:3000').
|
||
|
with(protocol: Async::HTTP::Protocol::HTTP1)
|
||
|
end
|
||
|
|
||
|
supervisor
|