# Laravel scheduler for Shalom CareSol (recommended production approach) # --------------------------------------------------------------------------- # Runs the scheduler once a minute; Laravel decides which tasks are due. # Fires the daily SMS jobs (birthday + appointment reminders at 06:30 # Africa/Lagos) and the existing scheduled tasks (refunds, CBS payments). # # Install as the SAME user that owns the app (www-data): # sudo crontab -u www-data -e # then paste the line below. # # Verify what will run and when: # php artisan schedule:list # # Use EITHER this cron entry OR deploy/supervisor/shalom-scheduler.conf — not both. # --------------------------------------------------------------------------- * * * * * cd /var/www/apps/shalom-api && /usr/bin/php8.4 artisan schedule:run >> /dev/null 2>&1