具有 Web 进程类型的 Heroku Procfile
Heroku Procfile with web process type
我正在部署一个 create-react-app,它使用 Express 服务器进行一些服务器端渲染。
我正在使用 cra buildpack:https://github.com/mars/create-react-app-buildpack 和进程类型为 web
的 Procfile。
我不确定 web
个进程 运行 的确切时间。 Procfile是部署时只执行一次吗?
默认情况下,Heroku 为 web
进程运行一个 Dyno,它接收入站 HTTP 流量。这将在您首次部署后不久发生。如果需要,您可以选择缩放 up/down 每种过程类型的测功机数量,根本不包括 运行 一个 web
过程。
这里有一篇 link 的 heroku 文章对此进行了解释:https://devcenter.heroku.com/articles/procfile
摘录:
The web process type is special as it’s the only process type that will receive HTTP traffic from Heroku’s routers. Other process types can be named arbitrarily.
我正在部署一个 create-react-app,它使用 Express 服务器进行一些服务器端渲染。
我正在使用 cra buildpack:https://github.com/mars/create-react-app-buildpack 和进程类型为 web
的 Procfile。
我不确定 web
个进程 运行 的确切时间。 Procfile是部署时只执行一次吗?
默认情况下,Heroku 为 web
进程运行一个 Dyno,它接收入站 HTTP 流量。这将在您首次部署后不久发生。如果需要,您可以选择缩放 up/down 每种过程类型的测功机数量,根本不包括 运行 一个 web
过程。
这里有一篇 link 的 heroku 文章对此进行了解释:https://devcenter.heroku.com/articles/procfile
摘录:
The web process type is special as it’s the only process type that will receive HTTP traffic from Heroku’s routers. Other process types can be named arbitrarily.