我在 Python-Django
创建了一个项目我将项目部署在 heroku
.
当我尝试使用heroku open
时在终端上输入命令,我得到了
Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details.
请帮我解决这个错误。
最佳答案
根据您的其他问题(似乎可能是重复的)判断,我建议您仔细执行以下步骤:
https://devcenter.heroku.com/articles/django-app-configuration#the-basics
具体来说,您需要在requirements.txt中包含一个procfile +正确的应用程序,首先使用pip install
安装它们,并使用pip freeze>requirements.txt
捕获它们
从您发布的日志来看,您似乎应该从gunicorn开始,但它可能不是您缺少的唯一应用程序。
关于python - 如何在 Heroku (Python) 中解决 "Application Error",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39209671/