Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No Procfile and no package.json file found in Current Directory - See run-foreman.js

I am trying to deploy a django app to heroku, and it is causing me errors. In the process of debugging when I run the command

heroku local web -f Procfile.windows

it shows me the following error:

[FAIL] No Procfile and no package.json file found in Current Directory - See run-foreman.js --help

From the application structure that is attached you can see that there is the Proc file and the content of the Procfile is as following:

web: gunicorn klaviyo_integration.wsgi --log-file -

Any guesses what might be wrong?enter image description here

And I am using Windows as OS, in case there is a problem with gunicorn on that sense.

like image 961
Shpend Palushi Avatar asked Dec 07 '25 07:12

Shpend Palushi


2 Answers

It might caused by wrong Procfile syntax.

Try to remove any comment from your Procfile. It works in my case.

My original Procfile:

# Some comment here

web: python start.py --port %PORT%

After removing the comment, no more errors occur.

web: python start.py --port %PORT%
like image 109
Leon Avatar answered Dec 08 '25 23:12

Leon


I had same problem with tmp directory. I could solve it by removing from .gitignore. check Procfile in .gitignore

like image 21
mrm78 Avatar answered Dec 08 '25 23:12

mrm78



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!