Fix: bootstrap/cache Rechte nach artisan-Befehlen für www-data freigeben
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>main v1.1.303
parent
f49b92074e
commit
7454638506
|
|
@ -361,6 +361,9 @@ if [[ $NEED_PHP_RESTART -eq 1 || $NEED_COMPOSER -eq 1 || $NEED_MIGRATIONS -eq 1
|
|||
as_app "cd ${APP_DIR} && php artisan config:cache || true"
|
||||
as_app "cd ${APP_DIR} && php artisan route:cache || true"
|
||||
as_app "cd ${APP_DIR} && php artisan queue:restart || true"
|
||||
# Rechte: bootstrap/cache und storage müssen für www-data lesbar sein
|
||||
chown -R "${APP_USER}:${APP_GROUP}" "${APP_DIR}/bootstrap/cache" "${APP_DIR}/storage" 2>/dev/null || true
|
||||
chmod -R g+rX "${APP_DIR}/bootstrap/cache" "${APP_DIR}/storage" 2>/dev/null || true
|
||||
fi
|
||||
|
||||
# -------- Dienste neu laden (gezielt) ----------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue