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:
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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With