Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku multiple web processes

Tags:

node.js

heroku

I am working with node.js and heroku and would like to have more than one webprocess running. In the Procfile I have it looking like this:

web: node web.js
web: node differentWeb.js

However when I run it it will only run the last of the two. Is there a way to do this?

like image 704
Craftyviking Avatar asked May 23 '26 00:05

Craftyviking


1 Answers

An application on Heroku can only have one process named web that gets routed HTTP requests. If you need another web process then that would be another application on Heroku.

like image 134
James Ward Avatar answered May 25 '26 15:05

James Ward



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!