fix(invoiceshelf): re-link storage during update (#17431)

The update script doesn't run `php artisan storage:link`, so the symlink at `public/storage` is left pointing at the old release path after an update. As a result, uploaded images 404 in the frontend until the link is recreated by hand.

This change runs `storage:link` after the release is swapped in, to ensure that the storage path is symlinked correctly.
This commit is contained in:
Owen Voke
2026-09-22 09:59:09 +01:00
committed by GitHub
parent b5aa23e1bc
commit 53125f4e08
+1
View File
@@ -54,6 +54,7 @@ function update_script() {
$STD pnpm run build
fi
$STD php artisan migrate --force
$STD php artisan storage:link
$STD php artisan optimize:clear
chown -R www-data:www-data /opt/invoiceshelf
msg_ok "Updated Application"