diff --git a/laravel/laravel-horizon.runit b/laravel/laravel-horizon.runit index f082644..f288919 100644 --- a/laravel/laravel-horizon.runit +++ b/laravel/laravel-horizon.runit @@ -14,10 +14,10 @@ if [ "${HORIZON_ENABLE,,}" = "on" ]; then fi if [ "${HORIZON_UI,,}" = "on" ]; then echo "[HORIZON] Publishing horizon frontend assets" - artisan horizon:publish + php artisan horizon:publish fi echo "[HORIZON] Running laravel horizon runner" - cpulimit -l 30 -- artisan horizon + cpulimit -l 30 -- php artisan horizon touch /var/lock/laravel_horizon_started else echo "[HORIZON] Horizon is not present." diff --git a/laravel/laravel-scheduler.runit b/laravel/laravel-scheduler.runit index 7f6517e..e13ffd4 100644 --- a/laravel/laravel-scheduler.runit +++ b/laravel/laravel-scheduler.runit @@ -10,7 +10,7 @@ if [ "${SCHEDULER_ENABLE,,}" = "on" ]; then echo "[SCHEDULER] Migrations complete, starting scheduler" fi while true; do - artisan schedule:run + php artisan schedule:run sleep 59; done else diff --git a/laravel/migrate.runit b/laravel/migrate.runit index bb2b3b7..423b7ca 100644 --- a/laravel/migrate.runit +++ b/laravel/migrate.runit @@ -19,15 +19,15 @@ if [ "${MIGRATE_ENABLE,,}" = "on" ]; then touch /var/lock/laravel_migration_underway if [ "${MIGRATE_CLEAN,,}" = "on" ]; then - artisan migrate:fresh --force - artisan migrate --force # First run will fail due to permissions. We can ignore, but need to migrate again to finish. + php artisan migrate:fresh --force + php artisan migrate --force # First run will fail due to permissions. We can ignore, but need to migrate again to finish. else # If we run this on first commit, it is the same as migrate:fresh, first run may fail and we need to try one more time. - artisan migrate --force || artisan migrate --force + php artisan migrate --force || php artisan migrate --force fi if [ "${SEEDERS,,}" = "on" ]; then - artisan db:seed -q + php artisan db:seed -q fi rm /var/lock/laravel_migration_underway