使用 Procfile 配置应用程序进程 - Amazon Elastic Beanstalk
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

使用 Procfile 配置应用程序进程

您可以在源包的根目录中包含一个名为 Procfile 的文件,来指定启动应用程序的命令。

例 Procfile
web: node index.js

有关 Procfile 用法的信息,请展开 扩展 Elastic Beanstalk Linux 平台 中的 Buildfile 和 Procfile 部分。

注意

此功能将替换 aws:elasticbeanstalk:container:nodejs 命名空间中的旧 NodeCommand 选项。