Dokku Worker on Procfile – Starting delayed_job with Dokku

Install shoreman  https://github.com/statianzo/dokku-shoreman

sudo dokku plugin:install https://github.com/statianzo/dokku-shoreman.git

And then put this on a file called Procfile insde the project:

web: bundle exec rails server -p $PORT
worker: bundle exec rake jobs:work

All future deployments will use shoreman to start all processes.