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
* adding additional images for scaling
* add new commands to the cli ref
* update scale docs
* add config command to cli ref
* cloud config docs
* Update docs/hosting/app.md
Co-authored-by: Simon Young <[email protected]>
---------
Co-authored-by: Tom Gotsman <[email protected]>
Co-authored-by: Simon Young <[email protected]>
Copy file name to clipboardExpand all lines: docs/hosting/app.md
+54-57Lines changed: 54 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ from pcweb.styles.styles import get_code_style, cell_style
9
9
regions = {
10
10
"ams": "Amsterdam, Netherlands",
11
11
"arn": "Stockholm, Sweden",
12
-
"alt": "Atlanta, Georgia (US)",
12
+
"atl": "Atlanta, Georgia (US)",
13
13
"bog": "Bogotá, Colombia",
14
14
"bom": "Mumbai, India",
15
15
"bos": "Boston, Massachusetts (US)",
@@ -44,19 +44,6 @@ regions = {
44
44
"yyz": "Toronto, Canada"
45
45
}
46
46
47
-
vmtypes = [
48
-
{"id": "c1m.5", "name": "Single CPU Small", "cpu_cores": 1, "ram_gb": 0.512},
49
-
{"id": "c1m1", "name": "Single CPU Medium", "cpu_cores": 1, "ram_gb": 1.024},
50
-
{"id": "c1m2", "name": "Single CPU Large", "cpu_cores": 1, "ram_gb": 2.048},
51
-
{"id": "c2m.5", "name": "Double CPU Micro", "cpu_cores": 2, "ram_gb": 0.512},
52
-
{"id": "c2m1", "name": "Double CPU Small", "cpu_cores": 2, "ram_gb": 1.024},
53
-
{"id": "c2m2", "name": "Double CPU Medium", "cpu_cores": 2, "ram_gb": 2.048},
54
-
{"id": "c2m4", "name": "Double CPU Large", "cpu_cores": 2, "ram_gb": 4.096},
55
-
{"id": "c4m1", "name": "Quad CPU Micro", "cpu_cores": 4, "ram_gb": 1.024},
56
-
{"id": "c4m2", "name": "Quad CPU Small", "cpu_cores": 4, "ram_gb": 2.048},
57
-
{"id": "c4m4", "name": "Quad CPU Medium", "cpu_cores": 4, "ram_gb": 4.096},
58
-
{"id": "c4m8", "name": "Quad CPU Large", "cpu_cores": 4, "ram_gb": 8.192}
59
-
]
60
47
61
48
```
62
49
@@ -71,6 +58,18 @@ There are many actions you can take in the Cloud UI to manage your app. Below ar
71
58
72
59
## VMTypes
73
60
61
+
62
+
To scale your app you can choose different VMTypes. VMTypes are different configurations of CPU and RAM.
63
+
64
+
To scale your VM in the Cloud UI, click on the `Settings` tab in the Cloud UI on the app page, and then click on the `Scale` tab as shown below. Clicking on the `Change VM` button will allow you to scale your app.
This will deploy your app with the `c2m4` VMType, giving your app 2 cpu cores and 4 gb of ram.
85
+
This will deploy your app with the `c2m4` VMType, giving your app 2 CPU cores and 4 GB of RAM.
86
+
87
87
88
-
Below is a table of all the possible VMTypes:
88
+
89
+
## Regions
90
+
91
+
To scale your app you can choose different regions. Regions are different locations around the world where your app can be deployed.
92
+
93
+
To scale your app to multiple regions in the Cloud UI, click on the `Settings` tab in the Cloud UI on the app page, and then click on the `Regions` tab as shown below. Clicking on the `Add new region` button will allow you to scale your app to multiple regions.
By default all apps are deloyed in `sjc` if no other regions are given. If you wish to deploy in another region or several regions you can pass the `--region` flag (`-r` also works) with the region code. Check out all the regions that we can deploy to below:
Copy file name to clipboardExpand all lines: docs/hosting/deploy-quick-start.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,11 @@ That’s it! You should receive some feedback on the progress of your deployment
70
70
If you go back to the Cloud UI you should be able to see your deployed app and other useful app information.
71
71
72
72
73
+
```md alert info
74
+
# 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).
76
+
```
77
+
73
78
```md alert info
74
79
# Moving around the Cloud UI
75
80
To go back, i.e. from an app to a project or from a project to your list of projects you just click the `REFLEX logo` in the top left corner of the page.
0 commit comments