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

Temporary directory is not created locally or in CI for SaaS #16

Open
AlexSkrypnyk opened this issue Jun 28, 2021 · 1 comment
Open

Comments

@AlexSkrypnyk
Copy link
Contributor

AlexSkrypnyk commented Jun 28, 2021

SaaS project use govcms-scaffold project with settings for private and temp directory locations
vendor/govcms/scaffold-tooling/drupal/settings/all.settings.php

Private directory is set as sites/default/files/private/tmp, but locally or in CI is not created as a part of the build.

As a result of this, none of the CI tests that are relying on a real site having images coming from production using stage_file_proxy, are passing, since stage_file_proxy relies on correctly configured and existing temporary directory.

PaaS Dockerfile.cli has these lines that fix the issue

RUN fix-permissions /app/web/sites/default/files \
  && mkdir -p /app/web/sites/default/files/private/backups \
  && mkdir -p /app/web/sites/default/files/private/tmp \
  && fix-permissions /app/web/sites/default/files/private/tmp
@brett-sargeant
Copy link

This would be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants