node.js - 如何在 AWS Elastic Beanstalk 中指定 Procfile 的路径?
问题描述
我正在制作一个 monorepo nodejs 应用程序,我想Procfile
为我的 monorepo 中的每个包指定一个。
到目前为止,我发现该Procfile
文件需要位于根文件夹中。
如何指定所需的路径Procfile
?
例如
my-app/
packages/
server/
...other files
Procfile
web/
...other files
并使用Procfile
in packages/server/Procfile
。
解决方案
你不能改变路径。Procfile必须位于应用程序的根目录中:
在应用程序源的根目录中放置一个名为Procfile 的文件。
推荐阅读
- html - 在后面隐藏一个 div
- animation - 旋转时如何使 Windows Composition UI ElementVisual 的背面与正面不同?
- php - 将产品类别添加到 Woocommerce 中的交叉销售产品标题
- libgdx - 我可以使用 LibGDX 通过 Oculus Rift + touch 编写 VR 游戏吗?
- spring-integration - JDBC 入站适配器仅检索一条记录而不是全部
- python - 在python中保留带有重音符号的英文字母的同时去除外来字母
- python - 损失:执行回归时 Keras 中的 NaN
- python - 如何从数据中整合曲线
- javascript - 回调中的调用什么都不做
- database - 使用休息服务与数据库脚本进行数据库清理