Search code examples
pythondjangoherokuprocfile

Heroku looking for Procfile in wrong directory


I'm trying to work with Django on Heroku and I'm following this tutorial with its Django template https://devcenter.heroku.com/articles/django-app-configuration https://devcenter.heroku.com/articles/deploying-python

But when i run 'heroku local web' it always look in the wrong directory. I've tried to move the project

(env) D:\Study\Workbench\heroku-testing\testing\env\codeShareApp>heroku local web
[WARN] No ENV file found
[WARN] ENOENT: no such file or directory, open 'C:\Users\William\Procfile' 
[FAIL] No Procfile and no package.json file found in Current Directory - See 
run_foreman.js --help

The project directory is as follows

env/
    codeShareApp/
        .idea/
        codeShareApp/
        .env
        manage.py
        Procfile
        requirements.txt
        runtime
    include/
    Lib/
    Scripts/
    tcl/

EDIT: I tried to make a new project with directory like below, but still got the same error

codeShareApp/
    codeShareApp/
    env/
    .env
    manage.py
    Procfile
    requirements.txt
    runtime

Solution

  • I dont know why, but I tried it on another machine and it works just fine. It seems that it has something to do with heroku cli 6.13 because the error only occurs after it updates from version 5.12 to 6.12