Explain CC_CACHE_DEPENDENCIES when node is used #185
-
Hello, This is unclear if node dependencies can be cached or not. Could you please explain what languages are supported by I deployed node with and without this environment variable, it took the same time. The goal is to cache the dependencies of yarn, even between several deployments, so that yarn don't download the packages each time we deploy the node project. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
The link in the issue shouldn't be accessible, this file is meant to be included in other pages, e.g. https://www.clever-cloud.com/doc/getting-started/by-language/python/#cached-dependencies |
Beta Was this translation helpful? Give feedback.
-
The CleverCloud support told me to use So I'm trying to use this configuration:
The last 2 may be redundant, but let's see if it speeds up the deployment before changing it. |
Beta Was this translation helpful? Give feedback.
-
I tested the configuration from the previous comment on a new project, here is what I see:
It looks like dependencies are not cached, |
Beta Was this translation helpful? Give feedback.
-
It looks like |
Beta Was this translation helpful? Give feedback.
-
When using a dedicated instance for the build step,
And downloading the cache archive takes some time too, so using a dedicated instance doesn't speed up the deployment of our app. |
Beta Was this translation helpful? Give feedback.
-
It looks like starting the project once with a dedicated instance for the build step populated the cache, and now that no dedicated instance is used for the build step, the deployment skip the |
Beta Was this translation helpful? Give feedback.
It looks like starting the project once with a dedicated instance for the build step populated the cache, and now that no dedicated instance is used for the build step, the deployment skip the
yarn install
step and it boots very quickly!