[main]
name = "hello-funix"
entry = "main.py"
This is a minimized version of funix-cloud.toml
for most situations.
The main
section must be exist. name
filed is mandatory, you need to fill in the project name.
entry
is optional, if it does not exist then main.py
is automatically used as the entry file.
You can add advanced settings via config
section. Here is an example:
[main]
name = "hello-funix"
entry = "main.py"
[config]
no_frontend = false
transform = false
secret = "secret"
env = ".env"
Each of these fields is optional.
no_frontend
: Boolean type, whether or not to turn off the frontend, which can be turned on if you want to deploy a Funix application with no interface and only using WebAPI. Default isfalse
.transform
: Boolean type, whether to enable the transformation of global variables to session variables, may fail, recommended to usefunix_class
to manage sessions. Default isfalse
.secret
: String type, the secret key, which is required to call the functions. Default isnull
.env
: String type, the.env
file,funix-cloud
can access this file to read the environment information. Default isnull
. However,funix-cloud
automatically tries to read.env
in the current directory, and you can setfalse
to disable this default action.