Heroku multiple web processes

巧了我就是萌 提交于 2020-01-05 02:54:48

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!