From c793ad21243f68ff3a6627d625119bb10107c096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Tue, 17 Mar 2026 16:47:06 +0000 Subject: [PATCH] chore: use artisan script instead of building the path every time --- common/etc/entrypoint.d/99-laravel-about.sh | 4 ++-- common/etc/s6-overlay/s6-rc.d/schedule/run | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/common/etc/entrypoint.d/99-laravel-about.sh b/common/etc/entrypoint.d/99-laravel-about.sh index 480538f..a5b7177 100644 --- a/common/etc/entrypoint.d/99-laravel-about.sh +++ b/common/etc/entrypoint.d/99-laravel-about.sh @@ -3,8 +3,8 @@ script_name="laravel-about" if [ "$DISABLE_DEFAULT_CONFIG" = "false" ]; then # Check to see if an Artisan file exists and assume it means Laravel is configured. - if [ -f "$APP_BASE_DIR/artisan" ] && [ "${AUTORUN_LARAVEL_ABOUT:=true}" = "true" ]; then - php "$APP_BASE_DIR/artisan" about + if [ "${AUTORUN_LARAVEL_ABOUT:=true}" = "true" ]; then + artisan about fi else if [ "$LOG_OUTPUT_LEVEL" = "debug" ]; then diff --git a/common/etc/s6-overlay/s6-rc.d/schedule/run b/common/etc/s6-overlay/s6-rc.d/schedule/run index 18e084a..003ced3 100644 --- a/common/etc/s6-overlay/s6-rc.d/schedule/run +++ b/common/etc/s6-overlay/s6-rc.d/schedule/run @@ -1,11 +1,8 @@ #!/command/with-contenv sh if [ "$SCHEDULE_ENABLED" = "true" ]; then - # Changing to the base directory prevents - # the "Could not open input file: artisan" error - cd $APP_BASE_DIR echo "✅ Schedule is enabled" - php artisan schedule:work --whisper + artisan schedule:work --whisper else echo "❌ Schedule is disabled" s6-svc -Od .