-
-
Save trevorturk/0ef612e365e033549d3a30aa5947ae5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env -S falcon host | |
# frozen_string_literal: true | |
load :rack | |
hostname = File.basename(__dir__) | |
port = ENV["PORT"] || 3000 | |
rack hostname do | |
append preload "preload.rb" | |
cache false | |
count ENV.fetch("FALCON_COUNT", 1).to_i | |
endpoint Async::HTTP::Endpoint.parse("http://0.0.0.0:#{port}").with(protocol: Async::HTTP::Protocol::HTTP11) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require_relative "config/environment" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment