Configuration files
A project's configuration/ folder holds one file per package, named after it. What a file holds depends on whose name it has.
A build system's settings
A file named after one of the project's build-dependencies, such as configuration/JavaBuild.config, sets that build system up. Each line is key = value, or a list:
java.release = 21
run.jvm-args = [-Xmx512m]
Each build system's keys are on its language's page: Java, Kotlin, Go, Python, Elixir and your own scripts. A key it doesn't know is an error, and so is a file named after no package the project uses.
Your app's settings
Any other file, such as configuration/MyService.config, holds what your app reads when it runs, for each place it runs. Each line names a region, an environment and a stage, with * for any:
*.*.*.greeting = Hello
*.prod.*.greeting = Welcome
eu-west-1.prod.*.db.url = jdbc:postgresql://db.eu.example.com/shop
*.local.*.db.url = jdbc:postgresql://localhost/shop
The most specific line wins. A library's file gives defaults, which the app's own file replaces.
Where it runs
| Where | Region, environment, stage |
|---|---|
plinto run |
my-local-1, local, local (change one with --region, --env or --stage) |
| tests | my-local-1, test, test |
| a deployment | the environment's Instance |
plinto run says which it runs as: Running as region my-local-1, environment local, stage local. The app finds the settings in the file PLINTO_CONFIGURATION names, and where it runs in PLINTO_REGION, PLINTO_ENV and PLINTO_STAGE.