Skip to content

Commit 9501e90

Browse files
Alek PetuskeyAlek Petuskey
authored andcommitted
Pricing + Billing Update
1 parent 7da55d8 commit 9501e90

File tree

19 files changed

+455
-315
lines changed

19 files changed

+455
-315
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.states
12
**/*.db
23
**/*.pyc
34
**/*.swp
File renamed without changes.

docs/hosting/app-management.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
```python exec
2+
import reflex as rx
3+
from reflex_image_zoom import image_zoom
4+
from pcweb.pages.docs import hosting
5+
from pcweb.pages import docs
6+
from pcweb.styles.styles import get_code_style, cell_style
7+
```
8+
9+
# App
10+
11+
In Reflex Cloud an "app" (or "application" or "website") refers to a web application built using the Reflex framework, which can be deployed and managed within the Cloud platform.
12+
13+
You can deploy an app using the `reflex deploy` command.
14+
15+
There are many actions you can take in the Cloud UI to manage your app. Below are some of the most common actions you may want to take.
16+
17+
18+
## Stopping an App
19+
20+
To stop an app follow the arrow in the image below and press on the `Stop app` button. Pausing an app will stop it from running and will not be accessible to users until you resume it. In addition, this will stop you being billed for your app.
21+
22+
```python eval
23+
image_zoom(rx.image(src="/stopping_app.webp", padding_bottom="20px"))
24+
```
25+
26+
```md alert info
27+
# CLI Command to stop an app
28+
`reflex cloud apps stop [OPTIONS] [APP_ID]`
29+
```
30+
31+
## Deleting an App
32+
33+
To delete an app click on the `Settings` tab in the Cloud UI on the app page.
34+
35+
```python eval
36+
image_zoom(rx.image(src="/environment_variables.webp"))
37+
```
38+
39+
Then click on the `Danger` tab as shown below.
40+
41+
```python eval
42+
image_zoom(rx.image(src="/deleting_app.webp"))
43+
```
44+
45+
Here there is a `Delete app` button. Pressing this button will delete the app and all of its data. This action is irreversible.
46+
47+
```md alert info
48+
# CLI Command to delete an app
49+
`reflex cloud apps delete [OPTIONS] [APP_ID]`
50+
```
51+
52+
53+
## Other app settings
54+
55+
Clicking on the `Settings` tab in the Cloud UI on the app page also allows a user to change the `app name`, change the `app description` and check the `app id`.
56+
57+
The other app settings also allows users to edit and add secrets (environment variables) to the app. For more information on secrets, see the [Secrets (Environment Variables)]({hosting.secrets_environment_vars.path}) page.

docs/hosting/app.md

Lines changed: 0 additions & 224 deletions
This file was deleted.

docs/hosting/billing.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
```python exec
2+
import reflex as rx
3+
from reflex_image_zoom import image_zoom
4+
from pcweb.pages.pricing.calculator import compute_table_base
5+
from pcweb.pages.docs import hosting
6+
```
7+
8+
## Overview
9+
10+
Billing for Reflex Cloud is monthly per project. Project owners and admins are able to view and manage the billing page.
11+
12+
The billing for a project is comprised of two parts - number of `seats` and `compute`.
13+
14+
## Seats
15+
16+
Projects on a paid plan can invite collaborators to join their project.
17+
18+
Each additional collaborator is considered a `seat` and is charged on a flat monthly rate. Project owners and admins can manage permissions and roles for each seat in the settings tab on the project page.
19+
20+
## Compute
21+
22+
Reflex Cloud is billed on a per second basis so you only pay for when your app is being used by your end users. When your app is idle, you are not charged.
23+
24+
For more information on compute pricing, please see the [compute]({hosting.compute.path}) page.
25+
26+
## Manage Billing
27+
28+
To manage your billing, you can go to the `Billing` tab in the Cloud UI on the project page.
29+
30+
## Setting Billing Limits
31+
32+
If you want to set a billing limit for your project, you can do so by going to the `Billing` tab in the Cloud UI on the project page.

docs/hosting/compute.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
```python exec
2+
import reflex as rx
3+
from reflex_image_zoom import image_zoom
4+
from pcweb.pages.pricing.calculator import compute_table_base
5+
```
6+
7+
## Compute Usage
8+
9+
Reflex Cloud is billed on a per second basis so you only pay for when your app is being used by your end users. When your app is idle, you are not charged.
10+
11+
This allows you to deploy your app on larger sizes and multiple regions without worrying about paying for idle compute. We bill on a per second basis so you only pay for the compute you use.
12+
13+
By default your app stays alive for 5 minutes after the no users are connected. After this time your app will be considered idle and you will not be charged. Start up times usually take less than 1 second for you apps to come back online.
14+
15+
#### Warm vs Cold Start
16+
- Apps below `c2m2` are considered warm starts and are usually less than 1 second.
17+
- If your app is larger than `c2m2` it will be a cold start which takes around 15 seconds. If you want to avoid this you can reserve a machine.
18+
19+
## Compute Pricing Table
20+
21+
```python eval
22+
compute_table_base()
23+
```
24+
25+
## Reserved Machines (Coming Soon)
26+
27+
If you expect your apps to be continously recieving users, you may want to reserve a machine instead of having us manage your compute.
28+
29+
This will be a flat monthly rate for the machine.
30+
31+
## Monitoring Usage
32+
33+
To monitor your projects usage, you can go to the billing tab in the Reflex Cloud UI on the project page.
34+
35+
Here you can see the current billing and usage for your project.

docs/hosting/deploy-quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ If you go back to the Cloud UI you should be able to see your deployed app and o
7272

7373
```md alert info
7474
# Setup a Cloud Config File
75-
To create a `config.yml` file for your app to set your app configuration check out the [Cloud Config Docs]({docs.hosting.app.path}#config-file).
75+
To create a `config.yml` file for your app to set your app configuration check out the [Cloud Config Docs]({docs.hosting.app_management.path}).
7676
```
7777

7878
```md alert info

docs/hosting/deploy-with-github-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ github_actions_configs = [
3737
]
3838
```
3939

40-
# Reflex Deploy with Github Actions
40+
# Deploy with Github Actions
4141

4242
This GitHub Action simplifies the deployment of Reflex applications to Reflex Cloud. It handles setting up the environment, installing the Reflex CLI, and deploying your app with minimal configuration.
4343

0 commit comments

Comments
 (0)