The following command:
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.
The cloud.yml
file uses YAML format and supports the following structure. All fields are optional and will use sensible defaults if not specified:
For details of specific sections click the links in the table.
Organize deployments using projects:
You can also specify a project uuid instead of name:
You can go to the homepage of the project in the reflex cloud dashboard to find your project uuid in the url https://cloud.reflex.dev/project/uuid
Install additional system packages your application requires. Package names are based on the apt package manager:
Include local sqlite database:
This is not persistent and will be lost on restart. It is recommended to use a database service instead.
Deployment strategy: Available strategies:
immediate
: [Default] Deploy immediatelyrolling
: Deploy in a rolling mannerbluegreen
: Deploy in a blue-green mannercanary
: Deploy in a canary manner, boot as single machine verify its health and then restart the rest.
Development (cloud-dev.yml
):
Staging (cloud-staging.yml
):
Production (cloud-prod.yml
):
Deploy with specific configuration files: