I am setting up a Laravel queue on my Digital Ocean App. Typically I have used supervisor but I have read it is problematic in this environment. This question says that using a Worker Component is the best way to do this, but I have no idea how to set one up.
I would need the worker to run the artisan command
php artisan queue:work inside the main app’s primary directory and make sure it stays running after every rebuild after the app is ready.
Any help would be appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.