Heroku多个Web进程 [英] Heroku multiple web processes

查看:101
本文介绍了Heroku多个Web进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用node.js和heroku,并希望运行多个webprocess。
在Procfile中,我看起来像这样:

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?

推荐答案

Heroku上的应用程序只能有一个名为 web 获取路由HTTP请求。如果你需要另一个web进程,那么这将是Heroku上的另一个应用程序。

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.

这篇关于Heroku多个Web进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆