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

Stabilize deploys with improvements of p.sh definitions #234

Open
lchrusciel opened this issue Jan 3, 2025 · 0 comments
Open

Stabilize deploys with improvements of p.sh definitions #234

lchrusciel opened this issue Jan 3, 2025 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@lchrusciel
Copy link
Member

Description 📄

We probably wrongly configured mounts

mounts:
"/tests/Application/var/cache": "shared:files/cache"
"/tests/Application/var/log": "shared:files/log"
"/tests/Application/var/sessions": "shared:files/sessions"
"/tests/Application/public/uploads": "shared:files/uploads"
"/tests/Application/public/media": "shared:files/media"
"/tests/Application/public/assets": "shared:files/assets"
"/tests/Application/public/bundles": "shared:files/bundles"
"/tests/Application/private/credit_memos/": "shared:files/credit_memos"

or node_modules folder but regularly our deployment is failing due to a lack of cache space

Small wins 🏆

Recommendation from p.sh:

Hello,
 
Please consider implementing application logic within your build hook to manage/reuse/purge the build cache:
 
https://docs.platform.sh/development/variables/use-variables.html#use-provided-variables
PLATFORM_CACHE_DIR	Yes	No	
The directory where files are cached from one build to the next.

The directory is shared among all branches, so the same cache is used for all environments.

 
Examples:
 
https://docs.platform.sh/languages/nodejs/node-version.html#use-nvm
https://docs.platform.sh/languages/python/python-version.html
https://docs.platform.sh/create-apps/multi-app/project-structure.html#unified-app-configuration
 
 
Hope this helps.

Tips 💡

If you've done some research or have a reference links/files – put them here.

@lchrusciel lchrusciel added the bug Something isn't working label Jan 3, 2025
@lchrusciel lchrusciel added this to the 2.1.0 milestone Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant