Laravel on App Platform Worker issue running queue and scheduler

I have created an app platform worker, I am trying to run both Queue and Jobs at start but it seems like none of them are actually running. I have the following run commands:

heroku-php-apache2 public/ && while true; do echo “=> Running scheduler” php artisan schedule:run || true; echo “=> Sleeping for 60 seconds” sleep 60; done && php artisan queue:work

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I’m using this on a worker instance, you can check in your logs if it’s running or not (stdout goes there) - I’m not sure if you’re able to run it next to a webserver but standalone is fine (but an extra $)

    php artisan queue:work &
    while true; do
        echo "=> Running scheduler"
        php artisan schedule:run || true;
        echo "=> Sleeping for 60 seconds"
        sleep 60;