问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/11890856/heroku-multiple-web-processes