Reflex Cloud - Additional Concepts
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.
Environment Variables
Below is an example of how to use an environment variable file. You can pass the --envfile
flag with the path to the env file. For example:
In this example the path to the file is .env
.
If you prefer to pass the environment variables manually below is deployment command example:
They are passed after the --env
flag as key value pairs.
To pass multiple environment variables, you can repeat the --env
tag. i.e. reflex deploy --project f88b1574-f101-####-####-5f########## --env KEY1=VALUE1 --env KEY2=VALUE
. The --envfile
flag will override any envs set manually.
Adding Team Members
If you are a User you have the ability to create, deploy and delete apps, but you do not have the power to add or delete users from that project. You must be an Admin for that.
As an Admin you will see the an Add user
button in the top right of the screen, as shown in the image below. Clicking on this will allow you to add a user to the project. You will need to enter the email address of the user you wish to add.
Tokens
A token gives someone else all the permissions you have as a User or an Admin. They can run any Reflex Cloud command from the CLI as if they are you using the --token
flag. A good use case would be for GitHub actions (you store this token in the secrets).
Tokens are found on the Project List page. If you cannot find it click the Reflex Logo in the top left side of the page until it appears as in the image below.
VMTypes
To get all the possible VMTypes you can run the following command:
To set which VMType to use when deploying your app you can pass the --vmtype
flag with the id of the VMType. For example:
This will deploy your app with the c2m4
VMType, giving your app 2 cpu cores and 4 gb of ram.
Below is a table of all the possible VMTypes:
Regions
Below is an example of how to deploy your app in several 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: