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

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.

×
Submit an Answer
1 answer

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;
    done