Skip to content

Make sure Laravel storage directories exist#1857

Merged
zackgalbreath merged 1 commit into
releases/3.2from
artisan_storage_layout
Dec 4, 2023
Merged

Make sure Laravel storage directories exist#1857
zackgalbreath merged 1 commit into
releases/3.2from
artisan_storage_layout

Conversation

@zackgalbreath
Copy link
Copy Markdown
Contributor

When using a separate volume for CDash's storage directory, we need to ensure the existence of certain directories that Laravel expects.

We solve this problem by creating a new artisan command and running it from our Docker entrypoint.

When using a separate volume for CDash's storage directory, we need to ensure
the existence of certain directories that Laravel expects.

We solve this problem by creating a new artisan command and running it from
our Docker entrypoint.
Copy link
Copy Markdown
Collaborator

@williamjallen williamjallen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable overall. A few optional points for you to consider:

  1. Should this be added to our new cdash_install (#1818) script?
  2. Should the empty storage/* directories be removed from git? Doing so would allow you to fully abstract away all of the raw filesystem paths, and rely purely upon Laravel's storage facade.

Comment thread app/Console/Commands/MakeStorageDirectories.php
@zackgalbreath zackgalbreath added this pull request to the merge queue Dec 4, 2023
Merged via the queue into releases/3.2 with commit 4084fc7 Dec 4, 2023
@zackgalbreath zackgalbreath deleted the artisan_storage_layout branch December 4, 2023 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants