Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I've made a correct Procfile but I dont see a worker dyno in the dashboard

Im trying to deploy a very simple bot to heroku but I cant set the worker dyno because it doesnt show up on the dashboard, even though I have a Procfile with just one line it: worker: node app.js

like image 234
Officer Vimes Avatar asked Feb 05 '19 00:02

Officer Vimes


People also ask

Where do I put Procfile?

The Procfile is always a simple text file that is named Procfile without a file extension. For example, Procfile. txt is not valid. The Procfile must live in your app's root directory.

What is a worker dyno?

Worker dynos are typically used for background jobs, queueing systems, and timed jobs. You can have multiple kinds of worker dynos in your application. For example, one for urgent jobs and another for long-running jobs. For more information, see Worker Dynos, Background Jobs and Queueing.


1 Answers

Same issue, I resolved it from Heroku documentation:

Scaling a process type Heroku runs one web dyno for you automatically, but other process types don’t start by default. To launch a worker, you need to scale it up to one dyno:

heroku ps:scale worker=1
Scaling worker processes... done, now running 1
like image 92
israteneda Avatar answered Oct 13 '22 04:10

israteneda