Insufficient documentation on mail configuration
Hi @pchurro,
Good catch! The docs didn’t mention the need to run the queue. I assumed those running it in production would be aware, but many users may be new to Laravel. I’ve updated the documentation to clarify this.
Thanks
I can't find much about this in the documentation except this
But I think that there is something missing after
Queue system is set up according to. I have set it up using redis but I still need to runphp artisan queue:workmanually after the container has started. What is the recommended way for running the queue automatically and why is it not listed as a separate process in thesupervisord.conf? (https://github.com/HiEventsDev/Hi.Events/blob/develop/docker/all-in-one/supervisor/supervisord.conf)
Originally posted by @akifreak in #270
My current solution to avoid executing this command manually is to have my own local copy of supervisord.conf
mounted into the container. It starts the required php process in addition to the other processes.
I guess a better solution would be a separate container that communicates with redis? If so - how would that look like?
For reference:
docker-compose.yml
---
services:
allinone:
image: daveearley/hi.events-all-in-one:v1.0.0-beta.1
volumes:
- "./supervisord.conf:/etc/supervisord.conf:ro"
supervisord.conf
[program:php]
command=/usr/local/bin/php artisan queue:work
directory=/app/backend
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
redirect_stderr=true
stdout_logfile_maxbytes = 0
stderr_logfile_maxbytes = 0
Its just evil :( been looking for answers for like 2 days
#1090 also seems related? All in all, it doesn't seem like this is totally worked out. Would love to see people's working cloud-hosted all-in-one setups with SMTP functioning. Manually running the fix command stated above does not fix this, nor does building from current main which includes #1090. Maybe there are other moving parts causing different issues in main right now... lost after a while troubleshooting this.
Edit: I finally solved my problems. My combination of solutions conflicted with each other: using the up-to-date source code conflicts with the previous "fix" of passing AUTORUN_ENABLED=true. Once that was resolved, I still had SMTP issues, but discovered it was due to the port being blocked for Digital Ocean Droplets (they block 25, 465, and 587) causing silent failure when mail was being sent.