Francois Perron
Francois Perron

Reputation: 33

Deploy non-web Node app on heroku

I have a node app used only in a scheduler. But heroku keeps trying to call npm start on in.

State changed from starting to crashed
Process exited with status 1
State changed from crashed to starting
Starting process with command `npm start`

Even with a dummy worker in Procfile:

worker: echo 1

There's always a web process added at deploy:

Default types for Node.js -> web 

Any ideas on how I could get rid of heroku continuously trying to npm start?

Upvotes: 1

Views: 535

Answers (1)

jmike
jmike

Reputation: 352

Not really a direct solution, but you could easily scale down your web processes to 0.

heroku ps:scale web=0

Upvotes: 2

Related Questions