简体   繁体   中英

Laravel 5.1: Elastic Beanstalk worker tier setup queue

I follow this blog to setup sqs in worker tier. But I get the following error, it seems the daemon doesn't get the environment variable correctly.

错误日志

What I want to achieve is the worker tier to process all background jobs including cronjob & queue job.

P/S: The values in .env file I stored in elastic beanstalk configuration

I've update this part

[program:laravel_queue]
process_name=%(program_name)s_%(process_num)02d
command=php /var/app/current/artisan queue:work sqs --sleep=3 --tries=3
stdout_logfile=/var/app/support/logs/laravel-queue.log
logfile_maxbytes=0
logfile_backups=0
redirect_stderr=true
autostart=true
autorestart=true
startretries=86400
user=webapp
numprocs=1
redirect_stderr=true

I also blog it down here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM