简体   繁体   中英

Heroku multiple web processes

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM