docs: unify path setting docs for all custom files

This commit is contained in:
Jose Diaz-Gonzalez committed 2024-08-11 03:52:48 -04:00
1 parent fe9a890243
commit bbd5c039b5
7 files changed
+59 -22

No files matched your search

+9 -2
View File
@@ -47,12 +47,19 @@ dokku docker-options:add node-js-app build '--env NODE_ENV=production'
### Changing the `nixpacks.toml` location
When deploying a monorepo, it may be desirable to specify the specific path of the `nixpacks.toml` file to use for a given app. This can be done via the `builder-nixpacks:set` command. If a value is specified and that file does not exist in the app's build directory, then the build will fail.
The `nixpacks.toml` is expected to be found in a specific directory, depending on the deploy approach:
- The `WORKDIR` of the Docker image for deploys resulting from `git:from-image` and `git:load-image` commands.
- The root of the source code tree for all other deploys (git push, `git:from-archive`, `git:sync`).
Sometimes it may be desirable to set a different path for a given app, e.g. when deploying from a monorepo. This can be done via the `nixpackstoml-path` property:
```shell
dokku builder-nixpacks:set node-js-app nixpackstoml-path nixpacks2.toml
dokku builder-nixpacks:set node-js-app nixpackstoml-path .dokku/nixpacks.toml
```
The value is the path to the desired file *relative* to the base search directory, and will never be treated as absolute paths in any context. If that file does not exist within the repository, the build will fail.
The default value may be set by passing an empty value for the option:
```shell