score:1

Accepted answer

your procfile should use worker: instead of web:. for example:

worker: target/universal/stage/bin/{myappname}

then scale up the "worker" dynos by running:

$ heroku ps:scale worker=1

you can name the process anything you want (doesn't have to be "worker"), but "web" dynos are treated specially. heroku expects them to bind to a port and serve web requests.


Related Query

More Query from same tag