How to start the game! background works on Heroku

I hardly use a hero for my game! applications these days, and I'm new. I can deploy my web application, but background jobs do not start. I tried to add a worker, but got this error:

$ heroku scale worker=1 Scaling worker processes... ! No such type as worker 

I created a Procfile including

 web: play run --http.port=$PORT $PLAY_OPTS 

It’s just for the Internet, I couldn’t find expressions for running workers. How to run my background jobs on Heroku?

+2
source share
1 answer

You should define a worker instead of web:

 worker: play run --http.port=$PORT $PLAY_OPTS 
+3
source

Source: https://habr.com/ru/post/1386245/


All Articles