File tree Expand file tree Collapse file tree
src/common/etc/entrypoint.d Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments