Skip to content

Commit 3de817c

Browse files
committed
Amélioration de la gestion des erreurs lors de la création des répertoires de stockage et réorganisation de l'appel à la configuration d'Octane.
1 parent dad2a13 commit 3de817c

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

src/common/etc/entrypoint.d/50-laravel-automations.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ artisan_storage_recreate() {
141141
for path in $storage_paths; do
142142
echo "📁 Recreating storage directory: $path"
143143
mkdir -p "$APP_BASE_DIR/$path"
144-
chown www-data:www-data "$APP_BASE_DIR/$path"
145-
chmod 755 "$APP_BASE_DIR/$path"
144+
chown www-data:www-data "$APP_BASE_DIR/$path" 2>/dev/null || true
145+
chmod 755 "$APP_BASE_DIR/$path" 2>/dev/null || true
146146
done
147147
}
148148

@@ -427,11 +427,6 @@ if laravel_is_installed; then
427427
fi
428428

429429
echo "🤔 Checking for Laravel automations..."
430-
# If OCTANE_SERVER is set, run the Octane setup
431-
if [ -n "$OCTANE_SERVER" ] && [ "$OCTANE_SERVER" != "off" ]; then
432-
artisan_setup_octane
433-
fi
434-
435430
if [ "$AUTORUN_LARAVEL_STORAGE_RECREATE" = "true" ]; then
436431
artisan_storage_recreate
437432
fi
@@ -440,6 +435,10 @@ if laravel_is_installed; then
440435
artisan_storage_link
441436
fi
442437

438+
if [ -n "$OCTANE_SERVER" ] && [ "$OCTANE_SERVER" != "off" ]; then
439+
artisan_setup_octane
440+
fi
441+
443442
if [ "$AUTORUN_LARAVEL_MIGRATION" = "true" ]; then
444443
artisan_migrate
445444
fi

0 commit comments

Comments
 (0)