Ensure help sync creates cache directory
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-14 08:17:49 +01:00
parent fa333deed9
commit 3a78c4f2c0
2 changed files with 2 additions and 2 deletions

View File

@@ -77,6 +77,8 @@ class HelpSyncService
foreach ($articles->groupBy(fn ($article) => $article['audience'].'::'.$article['locale']) as $key => $group) {
[$audience, $locale] = explode('::', $key);
$path = sprintf('%s/%s/%s/articles.json', $compiledPath, $audience, $locale);
$directory = sprintf('%s/%s/%s', $compiledPath, $audience, $locale);
Storage::disk($disk)->makeDirectory($directory);
Storage::disk($disk)->put($path, $group->values()->toJson(JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE));
Cache::forget($this->cacheKey($audience, $locale));
$written[$audience][$locale] = $group->count();

View File

@@ -36,8 +36,6 @@ ensure_helper_scripts() {
prepare_storage() {
cd "$APP_TARGET"
mkdir -p storage/app storage/framework/cache storage/framework/sessions storage/framework/views storage/logs
if [[ ! -h public/storage ]]; then
php artisan storage:link >/dev/null 2>&1 || true
fi