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: Fly.io.md
+39-3Lines changed: 39 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,21 +21,57 @@ Apps that are shutdown but persist on Fly.io accumulate a RootFS storage fee of
21
21
22
22
An example deployment flow using `fly.io` for a Ruby on Rails app.
23
23
24
+
### Initialization
25
+
26
+
Although fly.io can create deploy an application from a repository with a single command (`flyctl launch`), this reduces the amount of customisation available.
27
+
Additionally, often secrets that are required for the Rails app to boot will not be present in the initial Docker machine image that fly.io will create and changes will be needed.
28
+
Instead, an application can be registered using:
29
+
30
+
```bash
31
+
fly apps create APP_NAME
32
+
```
33
+
34
+
This will create an instance of an application with no machines attached.
35
+
24
36
### Integrating secrets
25
37
26
-
`flyctl launch --no-deploy`
38
+
Secrets can be added to an application without redeploying using the staging command:
39
+
40
+
```bash
41
+
fly secrets set SECREY_KEY=secret_value --stage
42
+
```
27
43
28
44
Add TAILSCALE_AUTHKEY secret
29
45
Add RAILS_SECRET_KEY_BASE secret
30
46
31
-
`flyctl deploy`
47
+
### Attaching services
48
+
49
+
50
+
51
+
### Build configuration
52
+
53
+
### Launching
54
+
55
+
56
+
`fly deploy` will automatically provision 2 machines.
57
+
Specifying false high availability will reduce this to one—this is beneficial for non-production environments.
58
+
There does not appear to be a `fly.toml` configuration for this.
0 commit comments