OlegMarko / laravel-queues-jobs

Laravel Queues & Jobs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Total Downloads Latest Stable Version License

Laravel QUEUE

  • run command step by step in your terminal
    git clone https://github.com/OlegMarko/laravel-queues-jobs.git
    cd laravel-queues-jobs
    composer install
    cp .env.example .env
    touch database/database.sql
    php artisan migrate
    php artisan serve
    php artisan queue:work

test route

** Messages about running jobs are written to the storage/logs/laravel.log file

Laravel Supervisor conf

sudo apt install supervisor

cd /etc/supervisor/conf.d

sudo nano laravel-worker.log

[program:laravel-worker]
#process_name=%(program_name)s_%(process_num)02d
command=php /var/www/laravel-queues-jobs/artisan queue:work --sleep=3 --tries=3
autostart=true
autorestart=true
user=root
numprocs=1
redirect_stderr=true
stdout_logfile=/var/log/supervisor/laravel-worker.log

sudo supervisorctl reread

sudo supervisorctl update

start process

sudo supervisorctl start laravel-worker

stop process

sudo supervisorctl stop laravel-worker

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

Laravel Queues & Jobs


Languages

Language:PHP 96.1%Language:HTML 3.2%Language:Vue 0.7%