Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the reason for "Procfile declares types -> (none)" in Heroku?

Tags:

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.

like image 974
Jason Kuhrt Avatar asked Jun 14 '11 15:06

Jason Kuhrt


People also ask

What is the purpose of Procfile in Heroku?

Heroku apps include a Procfile that specifies the commands that are executed by the app on startup. You can use a Procfile to declare a variety of process types, including: Your app's web server. Multiple types of worker processes.

What does Procfile mean?

Procfile is a file that specifies the commands that are executed. by an Heroku app on startup. While it is not necessary to include a Procfile. for Heroku deployment, a Procfile allows for more startup configuration. and the definition of multiple processes that run separate dynos.

Why is Procfile needed?

A Procfile is not necessary to deploy most languages supported by Deis. The platform automatically detects the language and supplies a default web process type to boot the server. Creating an explicit Procfile is recommended for greater control and flexibility over your app.

What is the use of Procfile in Python?

Use a Procfile, a text file in the root directory of your application, to explicitly declare what command should be executed to start your app. This Procfile file declares a single process type, web , and the command that will be used when that process is run.


1 Answers

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.

like image 102
Pascal Lindelauf Avatar answered Oct 25 '22 18:10

Pascal Lindelauf