Skip to content

Commit c56cf4d

Browse files
committed
Fix position of preload.
1 parent 1f94334 commit c56cf4d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

guides/rails-integration/readme.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ require "falcon/environment/rack"
3434
hostname = File.basename(__dir__)
3535
port = ENV["PORT"] || 3000
3636

37-
preload "preload.rb"
38-
3937
service hostname do
4038
include Falcon::Environment::Rack
41-
39+
40+
# This file will be loaded in the main process before forking.
41+
preload "preload.rb"
42+
4243
endpoint Async::HTTP::Endpoint.parse("http://0.0.0.0:#{port}")
4344
end
4445
~~~

0 commit comments

Comments
 (0)