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

Mount warnings #58

Open
danharper83 opened this issue Mar 20, 2024 · 3 comments
Open

Mount warnings #58

danharper83 opened this issue Mar 20, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@danharper83
Copy link

Describe the bug

When I create a project from this template every time I commit new changes and push I get the the following warnings

Include some logs

  W: The mount '/app/storage/framework/views' has a path that overlaps with a non-empty folder.
  The content of the non-empty folder either comes from:
   - your git repository (you may have accidentally committed files).
   - or from the build hook.
  Please be aware that this content will not be accessible at runtime.
  
  
  W: The mount '/app/storage/framework/cache' has a path that overlaps with a non-empty folder.
  The content of the non-empty folder either comes from:
   - your git repository (you may have accidentally committed files).
   - or from the build hook.
  Please be aware that this content will not be accessible at runtime.
  
  
  W: The mount '/app/storage/logs' has a path that overlaps with a non-empty folder.
  The content of the non-empty folder either comes from:
   - your git repository (you may have accidentally committed files).
   - or from the build hook.
  Please be aware that this content will not be accessible at runtime.
  
  
  W: The mount '/app/storage/app/public' has a path that overlaps with a non-empty folder.
  The content of the non-empty folder either comes from:
   - your git repository (you may have accidentally committed files).
   - or from the build hook.
  Please be aware that this content will not be accessible at runtime.
  
  
  W: The mount '/app/bootstrap/cache' has a path that overlaps with a non-empty folder.
  The content of the non-empty folder either comes from:
   - your git repository (you may have accidentally committed files).
   - or from the build hook.
  Please be aware that this content will not be accessible at runtime.
  
  
  W: The mount '/app/storage/framework/sessions' has a path that overlaps with a non-empty folder.
  The content of the non-empty folder either comes from:
   - your git repository (you may have accidentally committed files).
   - or from the build hook.
  Please be aware that this content will not be accessible at runtime.

Reproducing

Create a project from this template.

Expected behavior

No warnrings?

Your environment

Development

Screenshots

No response

Additional context

No response

@danharper83 danharper83 added the bug Something isn't working label Mar 20, 2024
@gilzow
Copy link
Contributor

gilzow commented Mar 20, 2024

These are expected and related to the fourth bullet point in the Customizations section of the README. That said, I do wonder if we might need to call it out more directly. 🤔

Specifically, what is happening is that these locations in the repo are placeholders (which is why they contain a .gitignore), for when the mounts are attached after the build stage.

The warning is indicating that if you have content in these locations in your repo, that content will be unavailable once the mount has been attached.

Did you start your project from the platform.sh console and select laravel from the list of templates? or did you start by clicking the "Deploy on Platform.sh" button in the README? I'm trying to think of how we can more efficiently surface the relevant information to a user.

@gilzow
Copy link
Contributor

gilzow commented Mar 20, 2024

Docs page on the message: https://docs.platform.sh/create-apps/troubleshoot-mounts.html

@danharper83
Copy link
Author

Ahh ok, well I initially added the config from this demo app into my own and assumed I had potentially made a mistake. So I tested with a blank laravel project in the Platform.sh UI.

I guess the warning message is fine in the deployment now I understand that it's ok to have the warning.

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

2 participants