使用 Procfile 設定應用程式程序 - AWS Elastic Beanstalk

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

使用 Procfile 設定應用程式程序

您可以在原始碼套件的根目錄中包含名為 Procfile 的檔案,以指定啟動應用程序的命令。

範例 Procfile
web: node index.js

如需有關 Procfile 用量的資訊,請展開 擴充 Elastic Beanstalk Linux 平台 中的 Buildfile 和 Procfile 區段。

注意

此功能會取代 aws:elasticbeanstalk:container:nodejs 命名空間中的舊版 NodeCommand 選項。