You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/deployment/readme.md
+13-7
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Falcon can be deployed into production either as a standalone application server
19
19
Here is a basic example which hosts a rack application using :
20
20
21
21
~~~ruby
22
-
#!/usr/bin/env falcon-host
22
+
#!/usr/bin/env falconhost
23
23
# frozen_string_literal: true
24
24
25
25
require"falcon/environment/rack"
@@ -47,7 +47,7 @@ These configuration blocks are evaluated using [async-service](https://github.co
47
47
The environment configuration is defined in the `Falcon::Environment` module. The {ruby Falcon::Environment::Application} environment supports the generic virtual host functionality, but you can customise any parts of the configuration, e.g. to bind a production host to `localhost:3000` using plaintext HTTP/2:
Copy file name to clipboardExpand all lines: guides/rails-integration/readme.md
+12-7
Original file line number
Diff line number
Diff line change
@@ -6,24 +6,24 @@ This guide explains how to host Rails applications with Falcon.
6
6
7
7
Because Rails apps are built on top of Rack, they are compatible with Falcon.
8
8
9
-
1. Add `gem 'falcon'` to your `Gemfile` and perhaps remove `gem 'puma'` once you are satisfied with the change.
9
+
1. Add `gem "falcon"` to your `Gemfile` and perhaps remove `gem "puma"` once you are satisfied with the change.
10
10
2. Run `falcon serve` to start a local development server.
11
11
12
12
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.
13
13
14
14
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:
15
15
16
-
```
16
+
~~~bash
17
17
falcon serve -b http://localhost:3000
18
-
```
18
+
~~~
19
19
20
20
### Production
21
21
22
22
The `falcon serve` command is only intended to be used for local development. Follow these steps to run a production Rails app with Falcon:
0 commit comments