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
from pcweb.styles.styles import get_code_style, cell_style
7
7
8
8
```
9
-
## Config File
9
+
## What is reflex cloud config?
10
10
11
-
To create a `config.yml` file for your app run the command below:
11
+
The following command:
12
12
13
13
```bash
14
14
reflex cloud config
15
15
```
16
16
17
-
This will create a yaml file similar to the one below where you can edit the app configuration:
17
+
generates a `cloud.yml` configuration file used to deploy your Reflex app to the Reflex cloud platform. This file tells Reflex how and where to run your app in the cloud.
18
+
19
+
20
+
## What does cloud.yml contain?
21
+
22
+
Here is an example cloud.yml file generated by the command:
18
23
19
24
```yaml
20
-
name: medo
25
+
name: default
21
26
description: ''
22
27
regions:
23
28
sjc: 1
@@ -30,3 +35,87 @@ packages:
30
35
- procps
31
36
```
32
37
38
+
### Configuration Options Explained
39
+
40
+
**name**
41
+
- Identifies your deployment in the Reflex Cloud dashboard
42
+
- Use descriptive names like `myapp-prod` or `myapp-staging`
- Use different `.env` files for staging/production
99
+
- Rotate secrets regularly
100
+
- Use strong, unique values for SECRET_KEY
101
+
102
+
## How to use the cloud.yml
103
+
104
+
1. Run reflex cloud config to generate the default `cloud.yml` file.
105
+
2. Open `cloud.yml` and customize the keys to fit your app and deployment preferences.
106
+
3. Ensure your .env file (or specified envfile) contains the necessary environment variables for your app.
107
+
4. Deploy your app using Reflex cloud commands (e.g., reflex deploy).
108
+
109
+
## Where to find values for keys?
110
+
111
+
- `regions`: Check Reflex cloud documentation or dashboard for region codes and availability.
112
+
- `vmtype`: Check Reflex cloud VM size options to pick the right balance of CPU/memory.
113
+
- `hostname`: Use your own domain name if you want a custom URL, or leave as null for default URLs.
114
+
- `project`: Your Reflex cloud account projects — find them on the Reflex dashboard.
115
+
- `packages`: Add any extra packages your app requires to run.
116
+
117
+
## Summary
118
+
119
+
Reflex Cloud provides a streamlined deployment experience for Python web applications. The `cloud.yml` configuration file gives you control over your deployment while maintaining simplicity. Start with basic configurations and scale up as your application grows.
120
+
121
+
For production applications, consider implementing proper monitoring, backup strategies, and CI/CD pipelines to ensure reliable deployments.
0 commit comments