YAML file location
When you run theupsun project:init command, a default config.yaml file is generated in the .upsun folder. It contains the minimum default configuration based on your detected local stack.
This YAML file is located in your .upsun directory, at the root of your project source code, and is a good starting point before customization.
Top-level keys
In theconfig.yaml file, there are three top-level YAML keys:
applications: this section of the file contains all of your app definitions
Note that
applications is a mandatory top-level key to include in your config.yaml file.routes: this section of the file contains all of your route definitions (for each of your apps)services: this section of the file contains all of your service definitions (for each of your apps)
apps
Any YAML files located at the first level of your
.upsun/ folder, at the root of your project source code, are taken in account. See Rules on YAML files.Rules on YAML files
The following rules apply to YAML files contained in the.upsun/ folder:
- All the existing YAML files located at the first level of the
.upsun/folder are taken into account. - All the existing YAML files located at the first level of the
.upsun/folder must feature the mandatory top-level keys, and must contain a valid YAML configuration. - All the YAML files in subdirectories of the
.upsun/folder need to be manually imported and contain a valid YAML configuration.