https://github.com/olegmarko/laravel-queues-jobs
Laravel Queues & Jobs
https://github.com/olegmarko/laravel-queues-jobs
laravel laravel-jobs laravel-queues
Last synced: 3 months ago
JSON representation
Laravel Queues & Jobs
- Host: GitHub
- URL: https://github.com/olegmarko/laravel-queues-jobs
- Owner: OlegMarko
- Created: 2018-07-07T21:34:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-09T18:51:56.000Z (almost 7 years ago)
- Last Synced: 2025-01-07T19:34:24.660Z (5 months ago)
- Topics: laravel, laravel-jobs, laravel-queues
- Language: PHP
- Size: 184 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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](http://127.0.0.1:8000)** 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](https://opensource.org/licenses/MIT).