首页 > 解决方案 > 如何在 AWS Elastic Beanstalk 中指定 Procfile 的路径?

问题描述

我正在制作一个 monorepo nodejs 应用程序,我想Procfile为我的 monorepo 中的每个包指定一个。

到目前为止,我发现该Procfile文件需要位于根文件夹中。

如何指定所需的路径Procfile

例如

my-app/
  packages/
    server/
      ...other files
      Procfile 
    web/
      ...other files

并使用Procfilein packages/server/Procfile

标签: node.jsamazon-web-servicesamazon-elastic-beanstalk

解决方案


你不能改变路径。Procfile必须位于应用程序的根目录中:

在应用程序源的根目录中放置一个名为Procfile 的文件。


推荐阅读