How to keep Laravel Queue system running on server

后端 未结 17 996
小鲜肉
小鲜肉 2020-11-28 02:23

I recently setup a Laravel Queue system. The basics are a cronjob calls a command which adds jobs to a queue and calls a second command which sends an email.

The sy

17条回答
  •  攒了一身酷
    2020-11-28 03:12

    The best way is PM2 (Advanced, production process manager for Node.js) that you can monit your queues and see their's logs.

    with command below in your project directory, run queue worker :

    pm2 start artisan --name laravel-worker --interpreter php -- queue:work --daemon
    

提交回复
热议问题