-2

I have tried each and everything... Renamed the Procfile, moved it to the root directory, etc. Wee the images below.

This is the error showing on my webapp page:

This is showing on my dashboard as Heroku has not recognized my Procfile:

This is the directory in which Procfile is there:

I see this when I deploy:

Procfile declares types -> (none)

This is the content of my Procfile:

Please Help me out

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257
  • Welcome to Stack Overflow. [Please don't post screenshots of text](https://meta.stackoverflow.com/a/285557/354577). They can't be searched or copied and offer poor usability. Instead, paste the code as text directly into your question. If you select it and click the `{}` button or Ctrl+K the code block will be indented by four spaces, which will cause it to be rendered as code. – ChrisGPT was on strike Jun 15 '20 at 20:49

1 Answers1

0

Do you see the third column in your Windows screenshot, where it says "Text Document" for your Procfile? That file is actually called Procfile.txt, not Procfile.

Windows Explorer

Windows hides file extensions for known file types by default, but you can turn them on in the "View" tab. After doing that, rename your file to actually be called Procfile, commit, and then redeploy.

Alternatively, if you're using Git bash, you can do this on the command line:

git mv Procfile.txt Procfile
git commit -m "Fix Procfile name"
ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257
  • "Not working" isn't very helpful. Please read [ask]. Do you still see "Text Document" in Windows Explorer? Did you commit the new file, and deploy with the new commit? What does `git ls-files Procfile` return if you run it in your root directory? – ChrisGPT was on strike Jun 17 '20 at 01:07