Tag: laravel

  • Running Laravel Queues with systemd Instead of Supervisor

    Use systemd to run reliable Laravel queue workers with automatic restarts, logging, and simple deploy hooks on modern Linux servers.

  • Setting Up Laravel’s Task Scheduler with Cron (Laravel 12)

    Laravel’s scheduler still sits on top of cron. You only need one cron entry. Add the cron entry Add: Key points: Define scheduled tasks Scheduled tasks live in routes/console.php. Here’s an example: This keeps scheduling logic simple and close to your CLI commands. Schedule jobs, not heavy logic Best practice is to dispatch jobs rather than…

  • How to Run Laravel Queues in Production Using Supervisor

    If your Laravel queue works locally but nothing happens in production, it’s almost always because there’s no worker running. queue:work needs to run continuously, and SSH sessions don’t count. The correct solution is Supervisor. Install Supervisor On Ubuntu: Make sure it’s running: Create a queue worker config Create a config file: Example config to run on a Redis…