From b9ad7015fbf90cdc692b5c2f9f6ebe7d8ed1157f Mon Sep 17 00:00:00 2001 From: Ismael Celis Date: Fri, 18 Oct 2024 16:56:32 +0100 Subject: [PATCH] Document binding to HTTP in development --- guides/rails-integration/readme.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/guides/rails-integration/readme.md b/guides/rails-integration/readme.md index 7bc5d55a..2e17e4c0 100644 --- a/guides/rails-integration/readme.md +++ b/guides/rails-integration/readme.md @@ -11,6 +11,12 @@ Because Rails apps are built on top of Rack, they are compatible with Falcon. We do not recommend using Rails older than v7.1 with Falcon. If you are using an older version of Rails, you should upgrade to the latest version before using Falcon. +Falcon assumes HTTPS by default (so that browsers can use HTTP2). To run under HTTP in development you can bind it to an explicit scheme, host and port: + +``` +falcon serve -b http://localhost:3000 +``` + ### Production The `falcon serve` command is only intended to be used for local development. Follow these steps to run a production Rails app with Falcon: