Report this

What is the reason for this report?

Migrating from Heroku: Workers?

Posted on July 23, 2020

I’ve been able to successfully move almost everything from Heroku over to DigitalOcean, and it’s been working great.

The last piece that I’m having trouble finding documentation on is Heroku Workers. I’m able to create workers within their Procfile like this:

web: vendor/bin/heroku-php-apache2 www/ workerA: php bin/example-file1.php workerB: php bin/example-file2.php

The scripts in the workers can run longer than the 30 second maximum imposed by Heroku for longer running tasks.

I’m unsure how to replicate this in DigitalOcean, and searching “worker” doesn’t really help.

Could anyone point me in the right direction?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.