Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions content/doc/reference/reference-environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
| Name | Description | Default value |
|-----------------------|------------------------------|--------------------------------|
|`CC_CACHE_DEPENDENCIES` | Enable caching of your build dependencies to speed up following builds. | false |
|`CC_CACHE_DEPENDENCIES_EXTRA_PATHS` | Adds additional paths to dependencies cache, relative to the application folder, separated by a `:` (e.g. `vendor:../dependencies`) | |

Check failure on line 66 in content/doc/reference/reference-environment-variables.md

View workflow job for this annotation

GitHub Actions / vale

[vale] content/doc/reference/reference-environment-variables.md#L66

[Google.Latin] Use 'for example' instead of 'e.g.'.
Raw output
{"message": "[Google.Latin] Use 'for example' instead of 'e.g.'.", "location": {"path": "content/doc/reference/reference-environment-variables.md", "range": {"start": {"line": 66, "column": 141}}}, "severity": "ERROR"}
|[`CC_DISABLE_BUILD_CACHE_UPLOAD`](../../develop/env-variables/#settings-you-can-define-using-environment-variables "Settings you can define using environment variables") | Disable creation and upload of cache archive. Restarts won't be speeded up. | `false` |
|[`CC_IGNORE_FROM_BUILDCACHE`](../../develop/env-variables/#settings-you-can-define-using-environment-variables "Settings you can define using environment variables") | Allows to specify paths to ignore when the build cache archive is created. | |
|[`IGNORE_FROM_BUILDCACHE`](../../develop/env-variables/#settings-you-can-define-using-environment-variables "Settings you can define using environment variables") | (Deprecated) Allows to specify paths to ignore when the build cache archive is created. | |
Expand Down
8 changes: 7 additions & 1 deletion shared/cached-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

#### Enabling dependencies caching

You can enable dependencies caching by adding the `CC_CACHE_DEPENDENCIES=true` [environment variable](#setting-up-environment-variables-on-clever-cloud) in your application. It is enabled by default only for rust and haskell applications.
You can enable dependencies caching by adding the `CC_CACHE_DEPENDENCIES=true` [environment variable](#setting-up-environment-variables-on-clever-cloud) in your application. It's enabled by default only for Haskell and Rust applications.

To add folders to the dependencies cache, use `CC_CACHE_DEPENDENCIES_EXTRA_PATHS`. These paths should comply with the following rules:
- Be a subdirectory of the `$HOME` directory, but not the whole `$HOME` directory
- Be a sibling or a child of the whole `$APP_HOME` directory, but not the whole `$APP_HOME` directory
- Be relative to the application root directory (e.g. `vendor`, `../dependencies`)

Check failure on line 10 in shared/cached-dependencies.md

View workflow job for this annotation

GitHub Actions / vale

[vale] shared/cached-dependencies.md#L10

[Google.Latin] Use 'for example' instead of 'e.g.'.
Raw output
{"message": "[Google.Latin] Use 'for example' instead of 'e.g.'.", "location": {"path": "shared/cached-dependencies.md", "range": {"start": {"line": 10, "column": 50}}}, "severity": "ERROR"}
- Be separated by a `:` if you want to add multiple paths (e.g. `CC_CACHE_DEPENDENCIES_EXTRA_PATHS=vendor:../dependencies`)

Check notice on line 11 in shared/cached-dependencies.md

View workflow job for this annotation

GitHub Actions / vale

[vale] shared/cached-dependencies.md#L11

[Google.Passive] In general, use active voice instead of passive voice ('Be separated').
Raw output
{"message": "[Google.Passive] In general, use active voice instead of passive voice ('Be separated').", "location": {"path": "shared/cached-dependencies.md", "range": {"start": {"line": 11, "column": 3}}}, "severity": "INFO"}

Check failure on line 11 in shared/cached-dependencies.md

View workflow job for this annotation

GitHub Actions / vale

[vale] shared/cached-dependencies.md#L11

[Google.Latin] Use 'for example' instead of 'e.g.'.
Raw output
{"message": "[Google.Latin] Use 'for example' instead of 'e.g.'.", "location": {"path": "shared/cached-dependencies.md", "range": {"start": {"line": 11, "column": 60}}}, "severity": "ERROR"}

#### Disabling dependencies caching

Expand Down
Loading