【问题标题】:Getting “Procfile declares types -> (none)” in Heroku as an error when I deploy部署时在 Heroku 中获取“Procfile 声明类型 ->(无)”作为错误
【发布时间】:2013-06-01 18:38:42
【问题描述】:

我正在尝试将测试应用程序部署到 Heroku,但每次执行时我的 Procfile 都会被忽略。

应该是这样说的:

Procfile 声明类型 -> web

但是这样说

Procfile 声明类型 ->(无)

由于这个问题,当我浏览 URL 时,它当然不会加载到 heroku 平台上。

我在应用程序的根目录中添加了一个Procfile,并在我放入的procfile中:

web: sh target/bin/webapp

还是不行。 Procfile 已正确命名和大小写。

【问题讨论】:

  • 正在使用什么构建包?这是显示的第一行之一。 IE。 ``` 共 3 个(delta 1),重用 0 个(delta 0) -----> 检测到 Node.js 应用 ```

标签: heroku procfile reveal.js


【解决方案1】:

如果您使用的是 windows,请确保您的 procfile 的文件名中没有任何扩展名

【讨论】:

    猜你喜欢
    • 2021-05-24
    • 2012-07-17
    • 1970-01-01
    • 2011-09-14
    • 2020-10-04
    • 2021-08-31
    • 2021-06-05
    • 2013-07-24
    • 1970-01-01
    相关资源
    最近更新 更多