“Procfile声明类型 - >的原因是什么? (无)"在Heroku? [英] What is the reason for "Procfile declares types -> (none)" in Heroku?

查看:110
本文介绍了“Procfile声明类型 - >的原因是什么? (无)"在Heroku?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



这应该是这样说的:

我试图部署一个测试应用程序到Heroku - 堆雪松,但每次我做我的Procfile被忽略。 / p>

  Procfile声明类型 - > web 

但是这样说

  Procfile声明类型 - > (none)

因为这个问题,当我导航时,它当然不会加载到heroku平台上除了这个测试(A),我有一个IDENTICAL项目(B)在另一个文件夹中工作。我非常困惑,为什么(A)不是我来这里问现在。



我尝试过的其他一些事情(A )包括:


  • 重新创建heroku应用程序
  • 重新创建git repo(即删除.git, git init ...)

  • 清除项目文件夹中的文件,并从另一个可用的副本中复制文件


如果我制作(B)的顶级文件夹副本,那么该副本将起作用。这个问题似乎是将文件/文件夹从(B)等内部复制到(A)中,这是被诅咒的内容。



所以,到目前为止,我所能确定的一切都是在减去这个(A)被诅咒的文件夹。我很想知道为什么,而不是必须得出一个巫术结论。

解决方案

我有同样的问题,我刚才发现什么是错的。我首先意外地调用了文件 ProcFile 而不是 Procfile 。简单地重命名该文件并没有被git拾起。我必须首先执行 git rm ProcFile -f ,然后添加一个新的(正确命名的) Procfile 。之后,它被git正确推送,并被Heroku正确拾取。


I am trying to deploy a test app to Heroku --stack cedar but every time I do my Procfile is being ignored.

It should be saying this:

Procfile declares types -> web

But says this

Procfile declares types -> (none)

Because of this problem it of course won't load on the heroku platform when I navigate the URL.

Aside from this test (A) I have an IDENTICAL project (B) in another folder which DOES work. I am so utterly confused as to why (A) doesn't that I'm coming here to ask now.

A couple other things I've tried with (A) include:

  • recreating the heroku app
  • recreating the git repo (i.e. delete .git, git init...)
  • clearing out the files from the project folder, and copying the files from the other copy that works

If I make top-level folder copy of (B) then that copy will work. The issue seems to be copying files/folders from within (B) et al to within (A), the cursed one.

So, so far all I can determine is everything is working minus this (A) cursed folder. I would love to find out why instead of having to come to a witch-craft conclusion.

解决方案

I had the same problem and I just now I found what was wrong. I first accidently called the file ProcFile instead of Procfile. Simply renaming that file did not get picked up by git. I had to do a git rm ProcFile -f first and then add a new (correctly named) Procfile. After that, it got pushed correctly by git and got picked up correctly by Heroku.

这篇关于“Procfile声明类型 - >的原因是什么? (无)"在Heroku?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆