Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add references to CC_DISABLE_BUILD_CACHE_UPLOAD #130

Merged
merged 2 commits into from
Jan 15, 2024
Merged
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
4 changes: 4 additions & 0 deletions content/doc/administrate/apps-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ Stop functionality is useful during the development of the application to limit
{{< imgproc link="/" caption="Manage your application" image="/images/app-management.png" method="resize" options="900x q80 webp">}}
{{< /img-grid >}}

{{< callout type="info" >}}
If you set [`CC_DISABLE_BUILD_CACHE_UPLOAD`](/doc/develop/env-variables/#settings-you-can-define-using-environment-variables) environment variable to `true`, the cache archive won't be created nor uploaded.
{{< /callout >}}

## Deploy an old commit

If you want to revert to a previous version of your code, you can go to the **Activity** menu of your application in the Clever Cloud console. You will find here all your previous commits. Just select **redeploy this commit** on the desired one. This will trigger a redeploy of your application at this version.
Expand Down
4 changes: 4 additions & 0 deletions content/doc/develop/build-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ This hook is perfect for:

- extra build steps that you want to cache (eg bundling your frontend assets)

{{< callout type="info" >}}
If you set [`CC_DISABLE_BUILD_CACHE_UPLOAD`](/doc/develop/env-variables/#settings-you-can-define-using-environment-variables) environment variable to `true`, the cache archive won't be created nor uploaded.
{{< /callout >}}

### Pre Run

**By using `CC_PRE_RUN_HOOK`.**
Expand Down
3 changes: 3 additions & 0 deletions content/doc/develop/env-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ It's handy if you want to only run crons on 1 instance (e.g. only on instance 0)

We use environment variables for some settings:

* `CC_DISABLE_BUILD_CACHE_UPLOAD`: allows you to ask that the cache archive is neither
created nor uploaded after the build process. Thus, restarts won't be speeded up,
as the build process will be launched each time.
* `IGNORE_FROM_BUILDCACHE`: allows you to specify paths to ignore when the build
cache archive is created. Must be relative to your application root.
(e.g. `foo/bar:foo/baz` where `bar` or `baz` can be either a directory or a file)
Expand Down
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 @@ -54,6 +54,7 @@ So you can alter the build&start process for your application.
| Name | Description | Default value |
|-----------------------|------------------------------|--------------------------------|
|`CC_CACHE_DEPENDENCIES` | Enable caching of your build dependencies to speed up following builds. | false |
|[`CC_DISABLE_BUILD_CACHE_UPLOAD`](/doc/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`](/doc/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`](/doc/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. | |
|[`CC_OVERRIDE_BUILDCACHE`](/doc/develop/env-variables/#settings-you-can-define-using-environment-variables "Settings you can define using environment variables") | Allows to specify paths that will be in the build cache. Only those files / directories will be cached | |
Expand Down
Loading