Skip to content

Commit

Permalink
try to reduce diff w/ tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorturk committed Apr 15, 2024
1 parent 2f673ae commit 1dc6c00
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions guides/deployment/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,24 +84,21 @@ hostname = File.basename(__dir__)
port = ENV["PORT"] || 3000

service hostname do
include Falcon::Environment::Rack
include Falcon::Environment::Rack

# By default, Falcon uses Etc.nprocessors to set the count, which is likely incorrect on shared hosts like Heroku.
# Review the following for guidance about how to find the right value for your app:
# https://help.heroku.com/88G3XLA6/what-is-an-acceptable-amount-of-dyno-load
# https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#workers
#
count ENV.fetch("WEB_CONCURRENCY", 1).to_i

# If using count > 1 you may want to preload your app to reduce memory usage and increase performance:
#
preload "preload.rb"

# Heroku only supports HTTP/1.1 at the time of this writing.
# Review the following for possible updates in the future:
# https://devcenter.heroku.com/articles/http-routing#http-versions-supported
# https://github.com/heroku/roadmap/issues/34
#
endpoint Async::HTTP::Endpoint.parse("http://0.0.0.0:#{port}").with(protocol: Async::HTTP::Protocol::HTTP11)
end
~~~
Expand Down

0 comments on commit 1dc6c00

Please sign in to comment.