By simbyone2
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
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.