Skip to content

Commit 03ba943

Browse files
committed
Ajout de la configuration de OCTANE_SERVER et mise à jour de la logique de vérification pour l'exécution de la configuration Octane
1 parent 3884da7 commit 03ba943

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ script_name="laravel-automations"
44
# Global configurations
55
: "${DISABLE_DEFAULT_CONFIG:=false}"
66
: "${APP_BASE_DIR:=/var/www/html}"
7+
: "${OCTANE_SERVER:=off}"
78
: "${AUTORUN_LIB_DIR:=/etc/entrypoint.d/lib}"
89

910
# Set default values for Laravel automations
@@ -428,10 +429,10 @@ if laravel_is_installed; then
428429

429430
echo "🤔 Checking for Laravel automations..."
430431
# If OCTANE_SERVER is set, run the Octane setup
431-
if [ -n "$OCTANE_SERVER" ]; then
432+
if [ -n "$OCTANE_SERVER" ] && [ "$OCTANE_SERVER" != "off" ]; then
432433
artisan_setup_octane
433434
fi
434-
435+
435436
if [ "$AUTORUN_LARAVEL_STORAGE_RECREATE" = "true" ]; then
436437
artisan_storage_recreate
437438
fi

0 commit comments

Comments
 (0)