我试过其他人的解决方案,以得到那里procfile承认,它只是不适合我。真的很困惑我如何能让heroku识别我的Procfile!我已经将它移到不同的文件夹中,但它只是不会识别它。Heroku not loading procfile
web: waitress-serve --port=$PORT alex1.wsgi:application
这是我的代码。它正好坐在我的requirements.txt文件旁边,这个文件正在被heroku收拾好。使用回声创建文件或甚至回声不起作用。
https://github.com/Hewlbern/Videography-Website/tree/master/Alex1 < ---我试图部署到heroku的github链接。如果有人可以帮忙,可以看看我把它放在哪里等等。
这样的伤感,很多都是疯狂的。
编辑 把它们放在目录的顶部 - 仍然不起作用。
这里是错误日志。
-----> Python app detected
! Warning: Your application is missing a Procfile. This file tells Heroku how to run your application.
! Learn more: https://devcenter.heroku.com/articles/procfile
-----> Installing requirements with pip
-----> $ python manage.py collectstatic --noinput
63 static files copied to '/tmp/build_b9ce82b65ae441b651c56911a7474859/Hewlbern-ConsultingPage-1720e65/djreact/static/root'.
-----> Discovering process types
Procfile declares types -> (none)
-----> Compressing...
Done: 64.3M
-----> Launching...
Released v19
https://consultingpage.herokuapp.com/ deployed to Heroku
为了回应Mike的观点,我通过他的例子,我达到了这一点。
C:\Users\Holbinator\Desktop\Software Dev\Alexandria>git push heroku master fatal: 'heroku' does not appear to be a git repository fatal: Could not read from remote repository.
然后我重新在根目录中做了Git Init,然后尝试从Github加载代码。 这导致了相同的问题。 我会把它放在我的编辑中。谢谢!我现在要试着去做你的方法,并弄清楚为什么我不能在这种情况下。
编辑两个
现在意识到我需要删除额外的Heroku应用程序。现在使用heroku cli加载文件。没有收到错误,不确定如何访问错误日志,但现在尝试解决问题。
无论是Procfile和requirements.txt应该在顶层。 –
当把它放在顶层时,它仍然不能识别它。 –
这是一个疯狂的猜测,但Procfile上的权限是什么? –